PHP Remove null values from an array – PHP April 14, 2011 Pramod T P Leave a comment <?php $testArray = array('Test1', 'Test2', ''); print_r( array_filter($testArray)); // Array ( [0] => Test1 [1] => Test2 ) ?>