note 30203 added to function.array-filter

From: Date: Mon, 10 Mar 2003 19:27:46 +0000
Subject: note 30203 added to function.array-filter
Groups: php.notes 
Request: Send a blank email to php-notes+get-45073@lists.php.net to get a copy of this message
array_filter() has a second parameter callback_function which is optional. If you call array_filter() without it, it will remove all values that are equal to the false values listed in http://de3.php.net/manual/en/language.types.boolean.php #language.types.boolean.casting [one line link] from the array. Example: $a = array(0 => 0, 1 => '', 2 => 'foo', 3 => false); $a = array_filter($a); -- http://www.php.net/manual/en/function.array-filter.php http://master.php.net/manage/user-notes.php?action=edit+30203 http://master.php.net/manage/user-notes.php?action=delete+30203 http://master.php.net/manage/user-notes.php?action=reject+30203

« previous php.notes (#45073) next »