In PHP, to check if a array is empty we can use the language function (or language constructor) empty .
So:
$a = array();
$b = array(1, 2);
var_dump(empty($a), empty($b)); // Imprime: bool(true), bool(false)
But the same d...
asked by
18.10.2015 / 00:35