note 16711 added to function.array-splice
| From: | gurmukh at usa dot net | Date: | Fri, 09 Nov 2001 19:06:33 +0000 |
| Subject: | note 16711 added to function.array-splice | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-20646@lists.php.net to get a copy of this message | ||
One function I didn't find in php:
function array_remove_nulls($input) {
while(list($key,$val) = @each($input))
if (!$val) array_splice($input,$key,1);
return $input;
}
Not sure what it does to associative arrays.
--
http://www.php.net/manual/en/function.array-splice.php
http://master.php.net/manage/user-notes.php?action=edit+16711
http://master.php.net/manage/user-notes.php?action=delete+16711
http://master.php.net/manage/user-notes.php?action=reject+16711