note 100167 added to function.class-exists
| From: | uramihsayibok at osu1 dot php dot net | Date: | Wed, 29 Sep 2010 04:56:46 +0000 |
| Subject: | note 100167 added to function.class-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-172800@lists.php.net to get a copy of this message | ||
@myb:
class_exists wants the full path to the class. So <? class_exists("Zend_Registry")
?> will do it. Prepending a slash works too if you want to remind someone reading your code, but
internally it gets ignored.
If it doesn't work then there's something else wrong.
(And if you need help, find a forum or mailing list. Don't ask in the manual comments.)
----
Server IP: 64.71.164.2
Probable Submitter: 75.172.98.21
----
Manual Page -- http://www.php.net/manual/en/function.class-exists.php
Edit -- https://master.php.net/note/edit/100167
Del: integrated -- https://master.php.net/note/delete/100167/integrated
Del: useless -- https://master.php.net/note/delete/100167/useless
Del: bad code -- https://master.php.net/note/delete/100167/bad+code
Del: spam -- https://master.php.net/note/delete/100167/spam
Del: non-english -- https://master.php.net/note/delete/100167/non-english
Del: in docs -- https://master.php.net/note/delete/100167/in+docs
Del: other reasons-- https://master.php.net/note/delete/100167
Reject -- https://master.php.net/note/reject/100167
Search -- https://master.php.net/manage/user-notes.php