Tags
PHP , Object
Asked 3 years ago
20 Jul 2021
Views 1238
Maryse

Maryse posted

How to define an empty object in PHP

how to create an empty object in PHP ?
sqltreat

sqltreat
answered Jul 21 '21 00:00

stdClass would be used for define an empty object

$emptyobject=new StdClass;



$emptyobject is now an empty object . you can do anything what you want with empty object .
Post Answer