<?php $json = '[ { "post108" : [ "1" ] } ]'; foreach($data as $k => $v) { foreach($data[$k] as $k1 => $v1) { } }
Standard input is empty
Array ( [0] => stdClass Object ( [post108] => Array ( [0] => 1 ) ) ) Array ( [0] => stdClass Object ( [post108] => Array ( ) ) )