note 103168 deleted from function.array-flip by danbrown

From: Date: Tue, 29 Mar 2011 20:04:36 +0000
Subject: note 103168 deleted from function.array-flip by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-178322@lists.php.net to get a copy of this message
Note Submitter: Munk ---- @h3x for null value removal there is also array_filter, in fact for your use <?php $ary = array_filter( $ary ); ?> may work on its own, however a more correct version may be <?php $ary = array_filter( $ary, function( $value ) { return ! is_null( $value ); } ); ?>

« previous php.notes (#178322) next »