Name
class_exists
Synopsis
bool class_exists(stringname
[, boolautoload_class
])
Returns true
if a class with
the same name as the string has been defined; if not, it returns
false
. The comparison for class
names is case-insensitive. If
autoload
_class
is set and is true
, the class is loaded through the
class’s __autoload()
function
before getting the interfaces it implements.
Get Programming PHP, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.