$myArray = array(
  0 => 'foo',
  1 => false,
  2 => -1,
  3 => null,
  4 => '',
  5 => array(),
  6 => array('bar')
);

print_r(array_filter($myArray));