Object ID
- From: eli.hen@xxxxxxxxx (Eli)
- Date: Wed, 14 Feb 2007 19:31:00 +0200
Hi,
How can I get the object ID number of each Object in PHP (v.5.2) ?
The ID number is the one produced when dumping:
<?php
class A {}
class B {}
$a = new A();
$b = new B();
var_dump($a);
var_dump($b);
?>
=== output:
object(A)#1 (0) {
}
object(B)#2 (0) {
}
I do not want to buffer and parse the dumped string... Is there a nicer way?
-thanks!
.
- Follow-Ups:
- Re: [PHP] Object ID
- From: "Richard Lynch"
- Re: [PHP] Object ID
- From: Roman Neuhauser
- Re: [PHP] Object ID
- Prev by Date: Rounding -- was [PHP] round to nearest 500?
- Next by Date: Re: [PHP] Getting mysql_query results into an array
- Previous by thread: Rounding -- was [PHP] round to nearest 500?
- Next by thread: Re: [PHP] Object ID
- Index(es):
Relevant Pages
|