erknrio of Programming Guanches
11/10/2015 - 12:41 PM

Comprobar si un array está vacío. FROM: http://stackoverflow.com/questions/8328983/check-whether-an-array-is-empty

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

print_r(array_filter($myArray));