Remove item from array remove null values
Sep 11, 2009 Basic PHP
Say we want to drop a value from an array, this is simple: just unset it!
unset($myarray[13]);
Sometimes however we may want to perform some more complex clean ups. Such as if we have just exploded an URL for url rewriting, and want to get rid of the null array items placed where the slashes were.
First approach…………….
Read Remove item from array remove null values »
Tags: php array, php array values, php optimization, php performance

