- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.31
- Parse error: syntax error, unexpected ';', expecting ')' in /in/1Ogtt on line 3
Process exited with code 255.
<?php
$dataPerson = array(
'dn' => array('day' => 13, 'month' => 01, 'year' => 1974);
);
$checkNoEmptyRecursive = function($val) {
$empty = true;
array_walk_recursive($val, function($item, $key) use (& $empty) {
$empty = $empty && empty($item);
});
return $empty;
};
var_dump( $checkNoEmptyRecursive($dataPerson) );