Re: Assoc Array => Object
| From: | Zeev Suraski | Date: | Wed, 14 Jul 1999 23:41:25 +0000 |
| Subject: | Re: Assoc Array => Object | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-8515@lists.php.net to get a copy of this message | ||
At 23:59 14/07/99 , Brian Moon wrote:
I just saw this in the mysql code. if (return_value->type==IS_ARRAY) { return_value->type=IS_OBJECT; } This seems to say that converting a variable from an array to an object would be very easy. Could a function be made that simply changed an array to an object?Hmm, what's wrong with: $foo = (object) $foo; ? Zeev -- Zeev Suraski <zeev@zend.com> http://www.zend.com/ For a PGP public key, finger bourbon@netvision.net.il