Proper way to create a blank object
Posted: Sun Apr 09, 2006 8:50 pm
I know that there are several ways to create an empty object, but which one is the best/most proper?
Should either of the above be used?
Code: Select all
$obj = new stdClass();
$obj = (object) null;