note 102812 added to function.class-exists
| From: | Anonymous at osu1 dot php dot net | Date: | Tue, 08 Mar 2011 06:21:15 +0000 |
| Subject: | note 102812 added to function.class-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-177650@lists.php.net to get a copy of this message | ||
It might not be obvious to some, but whenever you reference a namespace in a string, each backslash
must be escaped with another backslash because of how PHP handles strings.
<?php
class_exists('\\Zend_Registry'); // return true
?>
----
Server IP: 192.41.42.26
Probable Submitter: 76.25.105.79
----
Manual Page -- http://www.php.net/manual/en/function.class-exists.php
Edit -- https://master.php.net/note/edit/102812
Del: integrated -- https://master.php.net/note/delete/102812/integrated
Del: useless -- https://master.php.net/note/delete/102812/useless
Del: bad code -- https://master.php.net/note/delete/102812/bad+code
Del: spam -- https://master.php.net/note/delete/102812/spam
Del: non-english -- https://master.php.net/note/delete/102812/non-english
Del: in docs -- https://master.php.net/note/delete/102812/in+docs
Del: other reasons-- https://master.php.net/note/delete/102812
Reject -- https://master.php.net/note/reject/102812
Search -- https://master.php.net/manage/user-notes.php