Welcome To Snipplr


Everyone's Recent Snippets Tagged array



1 ... 4 5 6 7 8 ... 13
Parameters: $array - haystack, $find-value - needle to check for duplicates
1 609 posted 13 years ago by stz184
Simply pass in array name and the value of the item you want to remove
1 765 posted 13 years ago by myke
This is a simple 'text to array for output' script that I've used a few times for my clients. Hope you like!
0 770 posted 13 years ago by chicagowebmanagement
searching for a date sort function I found: http://slevy1.wordpress.com/2010/06/30/sorting-date-strings-in-php/ and built my codeigniter helper call : $arrSortedDates = bubbleSort( $unsorted ); (previous->helper autoload)
0 601 posted 13 years ago by lluisr
0 464 posted 13 years ago by CJness
0 491 posted 13 years ago by bedomax
This PHP code snippet searches a value in an array. Depending on use, one or all matching values and their belonged keys are removed.
3 619 posted 13 years ago by DADU
Orders a multi-dimensional field (such as sorting multiple $orders by field 'id')
0 739 posted 13 years ago by jmiller
Pass in object. Returns array.
0 690 posted 13 years ago by jmiller
This JavaScript code snippet checks each integer in an array. If necessary, one or more leading zeros are added to an integer. Note that each integer becomes a string.
1 580 posted 13 years ago by DADU
This PHP code snippet checks each integer in an array. If necessary, one or more leading zeros are added to an integer. Note that each integer becomes a string.
2 675 posted 13 years ago by DADU
Courtesy of Dorphalsig on php.net (see URL above)
1 580 posted 13 years ago by Moridin
like array_search but compares against a specific key in each element of the array
2 733 posted 13 years ago by iloveitaly
0 533 posted 13 years ago by iloveitaly
Thanks to the original author.
1 599 posted 13 years ago by riddla
Get the min / max value from array.
1 462 posted 13 years ago by mihael
Создание процедуры с переменным числом параметров и обработка этих параметров
0 439 posted 13 years ago by makeev
Functions to search from arrays as well as recursive arrays.
1 535 posted 13 years ago by sarfraznawaz2005
0 1864 posted 13 years ago by mrhoo
If you need to sort an array in javascript this is how it should be done. Casting toLowerCase() is optional but but necessary if fx "Anne" was spelled "anne"
0 634 posted 13 years ago by fengelz
1 ... 4 5 6 7 8 ... 13