- array_map: documentation ( source)
- print_r: documentation ( source)
- array_filter: documentation ( source)
<?php
$array = array(array('data1','data1'), array('data2','data2'), array('',''), array('data4','data4'));
$array = array_filter(array_map('array_filter', $array));
print_r($array);