<?php $json = '{ "title": "PHP", "site": "GeeksforGeeks" }'; $data = json_decode($json); echo $data->title; echo " "; echo $data->site; ?>