JSON Decode PHP

The json_decode() function is used to decode or convert a JSON object to a PHP object.

Example:

$jsonobj = '{"Peter":35,"Ben":37,"Joe":43}';

$obj = json_decode($jsonobj);

echo $obj->Peter;
echo $obj->Ben;
echo $obj->Joe;

Result:

353743
READ :  Theme WordPress WooCommerce (Toko Online)
Topic : Website
Penulis : Andreas

Publisher konten, aktif membuat artikel informatif membantu pembaca memahami tren terbaru secara lebih jelas dan mudah dipahami.

Editor : SEOSatu

Bertanggung jawab atas proses penyuntingan, verifikasi serta memastikan konten akurat, relevan, dan sesuai standar kualitas.