Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged array



1 2 3 4 5 6 Next »
an array of US states
0 1182 posted 16 years ago by benrasmusen
Repeatable Fisher Yates Array Shuffle based on given random string. If no seed is provided the current second will be used (not to use as a pure random shuffle... based on microseconds)
0 1403 posted 16 years ago by digdan
0 1129 posted 17 years ago by iTony
2 1179 posted 17 years ago by benphelps
1 1297 posted 17 years ago by cristiana
1 1075 posted 17 years ago by wesbaker
This was taken out of a presentation by eZ systems on PHP Best Practices
0 1083 posted 17 years ago by luizlopes
This function can validate and parse UK postcode like SW1A 1AA in to formated array.
2 1721 posted 17 years ago by naz
Fallback Function for versions earlier then php5
0 1010 posted 17 years ago by razel
Fallback Function for versions earlier then php5
0 1008 posted 17 years ago by razel
Fallback Function for versions earlier then php5
0 1247 posted 17 years ago by razel
1 1067 posted 17 years ago by Cory
Array of Countries in Turkish language.
0 1240 posted 17 years ago by skywalker
1 16933 posted 17 years ago by johnself
Searches an array $haystack for $needle. Returns the value of the element which contains the first result. Use strstr_array() for case-sensitive searches and stristr_array() for case-insensitive searches.
1 2486 posted 17 years ago by engel
adapted from http://www.gotocode.com/art.asp?art_id=275&
0 1375 posted 17 years ago by clapfouine
3 1116 posted 17 years ago by JuliaKM
simply adding the tags will display the contents of the array in a much better fashion.
0 1761 posted 17 years ago by scriptmakingcom
Was fiddling around at work one day thought this might be useful.
9 3957 posted 18 years ago by djdykes
Me he basado en el combo que he encontrado en snippler por luman por eso empieza el índice en 2
3 1482 posted 18 years ago by isaac
1 1218 posted 18 years ago by drwitt
The names of the months, as returned by date('M', ...)
1 1307 posted 18 years ago by collin
0 1113 posted 18 years ago by gdonald
1 1437 posted 18 years ago by gdonald
Took 0.164692 seconds for array[] Took 0.395778 seconds for array_push As you can see array_push is more than twice as slow. Here are the reasons. Array_push is a function call, Function calls are always slower. Array_push takes mixed parameters,...
0 4276 posted 19 years ago by mthorn
1 2 3 4 5 6 Next »