note 48658 deleted from function.array-filter by felipe

From: Date: Thu, 03 Jan 2008 02:04:14 +0000
Subject: note 48658 deleted from function.array-filter by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-134694@lists.php.net to get a copy of this message
Note Submitter: timo at frenay dot net ---- Do not use this function to delete known values from an array; array_diff() does the job much easier. For example, to delete all empty strings from an array: <?php $arr = array_diff($arr, array('')); ?>

« previous php.notes (#134694) next »