Welcome To Snipplr
Everyone's Recent Snippets Tagged array
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Parameters: $array - haystack, $find-value - needle to check for duplicates
1
932
posted 14 years ago by stz184
Simply pass in array name and the value of the item you want to remove
1
1180
posted 14 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
1120
posted 14 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
910
posted 14 years ago by lluisr
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
993
posted 14 years ago by DADU
Orders a multi-dimensional field (such as sorting multiple $orders by field 'id')
0
1096
posted 14 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
893
posted 14 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
1028
posted 14 years ago by DADU
like array_search but compares against a specific key in each element of the array
2
1086
posted 14 years ago by iloveitaly
Создание процедуры Ñ Ð¿ÐµÑ€ÐµÐ¼ÐµÐ½Ð½Ñ‹Ð¼ чиÑлом параметров и обработка Ñтих параметров
0
763
posted 14 years ago by makeev
Functions to search from arrays as well as recursive arrays.
1
837
posted 14 years ago by sarfraznawaz2005
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
979
posted 14 years ago by fengelz