codetogo.io icon indicating copy to clipboard operation
codetogo.io copied to clipboard

Use Case Suggestion: $object = new stdClass()

Open omaralsaroot opened this issue 2 months ago • 0 comments

$object = new stdClass();

$object->name = “Rahul”;

$object->age = 30;

$object->city = "Dehradun";

$object_JSON = json_encode($myObj);

echo $object_JSON;

omaralsaroot avatar May 03 '24 08:05 omaralsaroot