Welcome To Snipplr


Everyone's Recent Snippets Tagged array



2 2706 posted 17 years ago by iTony
0 1780 posted 17 years ago by cobra90nj
hope you enjoy - thanks to Tom Duff (for implementation in C), Dean Edwards, and Nicholas Zakas for the idea
0 1508 posted 17 years ago by jschilling
Remove item (number or string) from array, using jQuery (method grep).
3 19154 posted 17 years ago by gustavopaes
1 1841 posted 17 years ago by michaelfox
1 2057 posted 17 years ago by apro2000
Instead of one element you can insert multiple at once: array($element1, $element2, $element3)
1 2378 posted 17 years ago by kurokikaze
this function tells you whether or not the passed value is in the passed array
1 2172 posted 17 years ago by jlvallelonga
0 1714 posted 17 years ago by badabam
Use the colon : modifier to build an array. The colon is like a wildcard. In this case, anything that starts with ash. SAS Arrays hold variable names which can be used during tedious procedures such as conditional loops.
0 4293 posted 17 years ago by webonomic
0 1997 posted 17 years ago by Meestercor
In this case I'm looking for image sources in html and placing them in array.
1 2378 posted 17 years ago by leonbda
5 2557 posted 17 years ago by Wiederkehr
Usage: define('PIRATE',bindec('0001')); // 1 define('NINJA',bindec('0010')); // 2 define('JEDI',bindec('0100')); // 4 define('ADMIN',bindec('1000')); // 8 $rpermit = array(PIRATE,JEDI); // Equivilent Flags '0101'...
0 1525 posted 17 years ago by Jdub7
1 2307 posted 17 years ago by jamierumbelow
0 1970 posted 17 years ago by giroro
I don't wanna forget this small yet useful line.
1 2061 posted 17 years ago by axthos
0 1833 posted 17 years ago by jimfred
very easy to use pagination class, see website for comments
1 3134 posted 17 years ago by localhorst
remove(array) --> array Array.remove(a) simply removes all the items in the passed in array from the current scope array. Good for bulk operations.
0 1927 posted 18 years ago by kouphax
You can find a string as an array row value. Ex: arr=['abcde','mdleo'] arr.find('dbd') -> array['abcde'] arr.find('akdowewo') -> array[] (empty)
0 2214 posted 18 years ago by tonic
1 1683 posted 18 years ago by Paco
Pre-selects an html form with a requested value... ie; editing a form from a database
0 2018 posted 18 years ago by davidsword
an array of US states
0 2024 posted 18 years ago by benrasmusen