note 107071 modified in language.types.object by danbrown
| From: | danbrown@php.net | Date: | Fri, 06 Jan 2012 19:17:54 +0000 |
| Subject: | note 107071 modified in language.types.object by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-185414@lists.php.net to get a copy of this message | ||
By far the easiest and correct way to instantiate an empty generic php object that you can then
modify for whatever purpose you choose:
<?php $genericObject = new stdClass(); ?>
I had the most difficult time finding this, hopefully it will help someone else!
--was--
By far the easiest and correct way to instantiate an empty generic php object that you can then
modify for whatever purpose you choose:
$genericObject = new stdClass();
I had the most difficult time finding this, hopefully it will help someone else!
http://php.net/manual/en/language.types.object.php