note 54163 added to function.class-exists
| From: | josh at digitalfruition dot com | Date: | Sat, 25 Jun 2005 18:23:08 +0000 |
| Subject: | note 54163 added to function.class-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-90944@lists.php.net to get a copy of this message | ||
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!)
?>
----
Manual Page -- http://www.php.net/manual/en/function.class-exists.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54163
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54163&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54163&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54163&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54163&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54163&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54163&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54163&report=yes
Search -- http://master.php.net/manage/user-notes.php