- var_dump: documentation ( source)
<?php
$arr = array(
20 => array(
'width' => 20,
'height' => 20,
),
60 => array(
'width' => 60,
'height' => 40,
),
150 => array(
'width' => 150,
'height' => 300,
)
);
$it = new RecursiveArrayIterator( $arr );
while( $it->valid() ) {
var_dump($it->current());
}