- print_r: documentation ( source)
<?php
// Everything you enter here will be executed by our servers. Try it!
$x = array
(
4 => array
(
"locationIds" => array
(
'1'
),
"contentIds" => array
(
'2'
)
),
2 => array
(
"locationIds" => array
(
'3'
),
"contentIds" => array
(
4
)
)
);
foreach( $x as $i => $v )
//echo $i . ' => ' . $v . "\n";
print_r( $v );