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]
- [PHP-WIN] Re: A uniqe ID for every item Mad Nas
- [PHP-WIN] Re: A uniqe ID for every item Nikolajus Krauklis
- RE: [PHP-WIN] A uniqe ID for every item Svensson, B.A.T.
- Re: [PHP-WIN] A uniqe ID for every item Mad Nas
- RE: [PHP-WIN] A uniqe ID for every item Svensson, B.A.T.
