<?php
$json = array(
'123' => array('data' => array('categories' => array(
array(
'id' => '2',
'description' => 'Single-player'
),
array(
'id' => '1',
'description' => 'Multi-player'
),
array(
'id' => '9',
'description' => 'Co-op'
),
array(
'id' => '22',
'description' => 'Steam Achievements'
),
array(
'id' => '28',
'description' => 'Full controller support'
)
))
),
'456' => array('data' => array(
array(
'id' => '21',
'description' => 'Downloadable Content'
)
)
),
);
print_r($json);
$result = array();
foreach($json as $j1)
{
print_r($j1); exit;
}
preferences:
36.35 ms | 402 KiB | 5 Q