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




-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to