At 11:19 PM 12/1/2003 +0100, Michael Walter wrote:
Christian Schneider wrote:
>[...]
c) $arr[$obj] would suddenly work according the __toString().
I remember this being requested as a feature anyway ;-)
The feature request was about using objects as hash indices, not their
string representation (I
Christian Schneider wrote:
>[...]
c) $arr[$obj] would suddenly work according the __toString().
I remember this being requested as a feature anyway ;-)
The feature request was about using objects as hash indices, not their
string representation (IIRC).
Cheers,
Michael
--
PHP Internals - PHP Ru
IMHO, think that __toString should be explicitly
called as in java. Sure it would be great if it works
when using print, echo, etc, mean that cases when its
obvious that should evaluate to string. But ALL other
cases should be evaluated only explicitly. Maybe using
a diferent syntax for that as (st