Amazing the little tricks you can pick up from combing the PHP manual, especially in the comments.
I particularly like this one-liner, which allows you to filter out blanks or empty elements from an array.
Posted on 29 January 2003 by Demian Turner
January 30th, 2003 at 11:46 am
This also works.
$array_with_empty = array(\"one\",\"\",\"three\",\"\",\"five\");
$cleaned_array = array_diff( $array_with_empty , array(NULL) );