Re: toString() and Object #ID

From: Date: Fri, 06 Jul 2007 03:59:24 +0000
Subject: Re: toString() and Object #ID
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-30477@lists.php.net to get a copy of this message
On Sun, July 1, 2007 2:18 pm, Pavel Shevaev wrote: > $ php -r "class Foo{};$foo = new Foo();var_dump($foo);" > object(Foo)#1 (0) { > } > > What I actually need, not the object hash but simply its unique id. According to Marcus, it's NOT unique. But I can see that for debugging, it would be very very very useful to have a correctly named function which returns this number, whatever it is, even if it's not an ID. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.internals (#30477) next »