- var_dump: documentation ( source)
- array_flip: documentation ( source)
<?php
$test = array(
1 => array(
"contentIds" => array( 12, 13, 14 ),
"locationIds" => array( 24 )
),
2 => array(
"contentIds" => array( 12, 13, 14 ),
"locationIds" => array( 24 )
)
);
var_dump( array_flip( $test ) );