I am working with multidimensional arrays and i need dumping they keys. But their values are wery huge. Is there some easy and quick way dump keys like print_r
or var_dump
but without values? Or truncated values?
Own function or 'helper' i can write by myself i want know whether exist some default function which one knows...
Use array_keys
print_r(array_keys($array));
What about array_walk_recursive?
array_walk_recursive($mutliDimArray, function($v, $key){
echo "<br/> key: ".$key." val: ".$v;
});