Open omaralsaroot opened 6 months ago
$object = new stdClass();
$object->name = “Rahul”;
$object->age = 30;
$object->city = "Dehradun";
$object_JSON = json_encode($myObj);
echo $object_JSON;
$object = new stdClass();
$object->name = “Rahul”;
$object->age = 30;
$object->city = "Dehradun";
$object_JSON = json_encode($myObj);
echo $object_JSON;