note 11641 added to get_class
| From: | cmv at easydns dot com | Date: | Wed, 28 Feb 2001 21:03:58 +0000 |
| Subject: | note 11641 added to get_class | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-11669@lists.php.net to get a copy of this message | ||
Class names are case-insensitive, so the above code is a bit overkill. Why not just:
if (get_class($var)=='corefactory') { ... }
http://www.php.net/manual/en/function.get-class.php