<?php
highlight_file
(__FILE__);
echo 
'<hr />';
$array = array ('one''two''''four');
echo 
'<pre>';
print_r($array);
print_r(array_filter($array'trim'));
print_r(array_diff($array, array('')));
echo 
'</pre>';
?>

Array
(
    [0] => one
    [1] => two
    [2] => 
    [3] => four
)
Array
(
    [0] => one
    [1] => two
    [3] => four
)
Array
(
    [0] => one
    [1] => two
    [3] => four
)