A uniqe ID for every item
| From: | Mad Nas | Date: | Thu, 16 Aug 2001 09:09:02 +0000 |
| Subject: | A uniqe ID for every item | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-8895@lists.php.net to get a copy of this message | ||
Hi all
How can generate a uniqe id for every object of a class,
for example
class A
{
var $id;
function A()
{
$this->id= // How genereate this , uniqe for class and all subclass
}
}
$a= new A();
$b=new A();
$c=new A();
print($a->id);
print($b->id);
print($c->id);
thanks for answer
Mad Nas