note 74210 added to migration52.incompatible
| From: | ErikOsterman at osu1 dot php dot net | Date: | Fri, 30 Mar 2007 03:44:00 +0000 |
| Subject: | note 74210 added to migration52.incompatible | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-124937@lists.php.net to get a copy of this message | ||
It should be noted that if you provide a __toString method, you can cast the object to a string and
use it as an array key (PHP 5.2.x).
e.g. $array[ (string)$myObject ] = 'foobar';
This is an alternative to using spl_object_hash.
----
Server IP: 69.147.83.197
Probable Submitter: 76.173.30.105
----
Manual Page -- http://www.php.net/manual/en/migration52.incompatible.php
Edit -- https://master.php.net/note/edit/74210
Del: integrated -- https://master.php.net/note/delete/74210/integrated
Del: useless -- https://master.php.net/note/delete/74210/useless
Del: bad code -- https://master.php.net/note/delete/74210/bad+code
Del: spam -- https://master.php.net/note/delete/74210/spam
Del: non-english -- https://master.php.net/note/delete/74210/non-english
Del: in docs -- https://master.php.net/note/delete/74210/in+docs
Del: other reasons-- https://master.php.net/note/delete/74210
Reject -- https://master.php.net/note/reject/74210
Search -- https://master.php.net/manage/user-notes.php