Re: Objects as array key names??
| From: | Richard Heyes | Date: | Sun, 16 Mar 2008 10:56:59 +0000 |
| Subject: | Re: Objects as array key names?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-271655@lists.php.net to get a copy of this message | ||
Hi,
Going off the subject alone, you might want to investigate the __tostring() magic method that you can define to handle objects being cast to a string. Also, there's a whole bunch of magic methods that you can use to handle PHP operations on user defined objects:
http://uk.php.net/manual/en/language.oop5.magic.php
--
Richard Heyes
Employ me:
http://www.phpguru.org/cv