PHP Tutorial - #83 - Decoding JSON In PHP

preview_player
Показать описание
In this PHP video tutorial I'll be showing you how to decode JSON within PHP. It's pretty simple stuff and is incredibly useful!

Follow me on Twitter (Feel free to tweet me questions!)
Рекомендации по теме
Комментарии
Автор

Thanks for this. I am requesting a google recaptcha json but it's returning NULL when I execute var_dump()... I have checked the file_get_contents link, which i have tested entering it into the web browser and i get the returned json data no problem. but not when I execute it through my code. I must have something written out wrong !

costadelmusic
Автор

do you have store into a database or can you query the array like with xpath /xml? thx

rw
Автор

What's the difference between using associated array(decode(x, true)) and the other way you did (decode(x)) ?

Fbravo