note 106468 deleted from language.constants.predefined by tularis
| From: | tularis@php.net | Date: | Fri, 11 Nov 2011 16:33:02 +0000 |
| Subject: | note 106468 deleted from language.constants.predefined by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-184395@lists.php.net to get a copy of this message | ||
Note Submitter: d dot herrera at giowall dot org
----
The __CLASS__ constant is perfect in this case:
<?php
class myClass
{
public function __toString()
{
return __CLASS__;
}
}
$classvar = new myClass;
echo $classvar;
?>
Just saying...