note 82085 added to function.class-exists

From: Date: Thu, 27 Mar 2008 08:56:44 +0000
Subject: note 82085 added to function.class-exists
Groups: php.notes 
Request: Send a blank email to php-notes+get-137621@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::Class")) ? "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/82085 Del: integrated -- https://master.php.net/note/delete/82085/integrated Del: useless -- https://master.php.net/note/delete/82085/useless Del: bad code -- https://master.php.net/note/delete/82085/bad+code Del: spam -- https://master.php.net/note/delete/82085/spam Del: non-english -- https://master.php.net/note/delete/82085/non-english Del: in docs -- https://master.php.net/note/delete/82085/in+docs Del: other reasons-- https://master.php.net/note/delete/82085 Reject -- https://master.php.net/note/reject/82085 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#137621) next »