note 54163 deleted from function.class-exists by felipe
| From: | felipe@php.net | Date: | Wed, 23 Apr 2008 12:01:41 +0000 |
| Subject: | note 54163 deleted from function.class-exists by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-138691@lists.php.net to get a copy of this message | ||
Note Submitter: josh at digitalfruition dot com
----
Just to note, class names appear to be case INsensitive. (At least at the time of writing in PHP
4.3.9). Take the following example:
<?php
class Foo { var $myVar; }
class Foo_Bar extends Foo { var $myVar2;}
echo class_exists('Foo'); //true
echo class_exists('foo'); //true
echo class_exists('Foo_Bar'); // true
echo get_class_parent('Foo_Bar'); // foo (NOTE: NOT Foo!)
?>