0

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...

Lajdák Marek
  • 2,969
  • 8
  • 29
  • 58

2 Answers2

0

Use array_keys

 print_r(array_keys($array));
mohe14
  • 47
  • 6
0

What about array_walk_recursive?

 array_walk_recursive($mutliDimArray, function($v, $key){       
    echo "<br/> key: ".$key."    val: ".$v;     
 });
Christian Felix
  • 644
  • 1
  • 9
  • 28