cycle through array
7
Returns an array with all the objects with certain class. tested on IE 6 and Firefox 2
4
Very useful function that you can use to debug/show your array and it's contents.
Sometimes when you have problems with arrays and print_r() isn't very nice way to show array values because it shows everything in one line and then it is very hard to debug... this way I think it's much much easier.
Sometimes when you have problems with arrays and print_r() isn't very nice way to show array values because it shows everything in one line and then it is very hard to debug... this way I think it's much much easier.
16
I've seen XML 2 Array functions done in other ways but this is the shortest implementation I've seen yet. I didnt write it myself though, but I thought I'd submit it for common good of this site. It uses regex and works prefectly.
7
I use this function when passing an array to a function being called from setTimeout();
13
It works with Array types. The example is a simple list of numbers, but the array could contain anything; lists of strings, functions, DOM nodes, whatever. Unfortunately, a lot of things that seem like arrays in the DOM aren't really, so you can't shuffle the images on a page with just document.images.shuffle() all by itself.
12
Given a PHP array (even a deep nested array), returns a string representation of that array as JavaScript array. Useful when using PHP to output JavaScript.
8
This code will remove specified no of elements in an js array , from the beggining of it.
6
Method for get n random number's
11
Convert an irregular name=value pair string into a formatted array.
4
A simple search array example.









