ID: 38694 User updated by: jerdonek at gmail dot com Reported By: jerdonek at gmail dot com Status: Wont fix Bug Type: Feature/Change Request Operating System: Mac OS X 10.4.7 PHP Version: 5.1.6 New Comment:
Won't fix ever? What's the rationale? Previous Comments: ------------------------------------------------------------------------ [2006-09-02 22:02:13] jerdonek at gmail dot com Description: ------------ Arrays and objects are not currently allowed as keys. Instead of: $values[$object] = 0; the programmer is forced to create string or integer keys for all objects we want to use as keys: $values[$object->id] = 0; I'm sure this has been mentioned before, but I couldn't find anything in the feature requests. So I am making a formal request. I know Python and Ruby allow this. Thanks. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38694&edit=1