In PHP, how do I split objects in vanilla PHP?

PHP, JSON, Object, Split, Example
This example demonstrates how to split a JSON object into individual properties using PHP.
<?php
// Example JSON string
$jsonString = '{"name": "John", "age": 30, "city": "New York"}';

// Convert JSON string to PHP object
$object = json_decode($jsonString);

// Splitting the object into individual properties
$name = $object->name;
$age = $object->age;
$city = $object->city;

// Displaying each property
echo "Name: $name, Age: $age, City: $city";
?>

PHP JSON Object Split Example