this is my code after json_decode:
stdClass Object (
[batchcomplete] =>
[query] => stdClass Object (
[pages] => stdClass Object (
[56667] => stdClass Object (
[pageid] => 56667
[ns] => 0
[title] => Hanoi
[contentmodel] => wikitext
[pagelanguage] => en
[touched] => 2015-10-25T20:13:21Z
[lastrevid] => 687471695
[length] => 53648
[fullurl] => https://en.wikipedia.org/wiki/Hanoi
[editurl] => https://en.wikipedia.org/w/index.php?title=Hanoi&action=edit
[canonicalurl] => https://en.wikipedia.org/wiki/Hanoi
)
)
)
)
How I can get values [title], [fullurl] and [pageid] using PHP? I don't now how to go through line [56667] => stdClass Object ( because 56667 is dynamic (it depends on request).
truewithinjson_decode($your_string,true)and you'll get an array instead of objects. And I think you were aware of how to use arraysjson_decode