How to Create an Object Without Class in PHP ? - GeeksforGeeks

PHOTO EMBED

Mon Aug 07 2023 01:45:44 GMT+0000 (Coordinated Universal Time)

Saved by @mvieira

// Creating an object
$object = new stdClass();

// Property added to the object
$object->property = 'Property_value';
content_copyCOPY

https://www.geeksforgeeks.org/how-to-create-an-object-without-class-in-php/