1 2 3 4 5 6 7 8 9
<?php $json = '{"feed":[{"ab:test":{"value":"foo"}},{"ab:test":{"value":"bar"}}]}'; $json_output = json_decode( $json ); foreach ( $json_output->feed as $feed ) { print_r( $feed->{'ab:test'}->value ); }
1
foobar