-
Notifications
You must be signed in to change notification settings - Fork 1
Functions php array
Sebastien Lucas edited this page Aug 23, 2012
·
11 revisions
http://php.net/manual/fr/function.array-filter.php
Allow to filter an array by a custom function that return the value to keep,
and if no function is given, it'll filter out FALSE value ('' , FALSE , 0 , NULL)
http://fr2.php.net/array_shift
array_shift() shifts (remove) the first value of the array off and returns it, shortening the array by one element and moving everything down. All numerical array keys will be modified to start counting from zero while literal keys won't be touched. Return the shifted value.