note 82086 added to function.class-exists
| From: | richard at richard-sumilang dot com | Date: | Thu, 27 Mar 2008 08:56:55 +0000 |
| Subject: | note 82086 added to function.class-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-137622@lists.php.net to get a copy of this message | ||
[ >= PHP 5.3]
If you are checking if a class exists that is in a specific namespace then you have to pass in the
full path to the class:
echo (class_exists("com::richardsumilang::common::MyClass")) ? "Yes" :
"No";
----
Server IP: 64.71.164.2
Probable Submitter: 24.24.191.132
----
Manual Page -- http://www.php.net/manual/en/function.class-exists.php
Edit -- https://master.php.net/note/edit/82086
Del: integrated -- https://master.php.net/note/delete/82086/integrated
Del: useless -- https://master.php.net/note/delete/82086/useless
Del: bad code -- https://master.php.net/note/delete/82086/bad+code
Del: spam -- https://master.php.net/note/delete/82086/spam
Del: non-english -- https://master.php.net/note/delete/82086/non-english
Del: in docs -- https://master.php.net/note/delete/82086/in+docs
Del: other reasons-- https://master.php.net/note/delete/82086
Reject -- https://master.php.net/note/reject/82086
Search -- https://master.php.net/manage/user-notes.php