Discover whether an instance of the class from would be an instance of the class as well.
static
boolean
classIsAssignableFrom
(string $class, string $classFrom)
-
string
$class
-
string
$classFrom
Return only the class name of a fully qualified name.
static
string
getClassName
(string $name)
-
string
$name: Fully qualified name of a class (with packages)
Check if a fully qualified class name is valid.
static
boolean
isValidClassName
(string $name)
-
string
$name: Fully qualified name of a class (with packages)
Load a class.
static
string
loadClass
(string $name)
-
string
$name: The fully qualified name of the class (with packages)
Get a new instance of a class by calling the no-required-argument constructor.
static
$object
newInstance
(string $name, [string $parent = null])
-
string
$name: The fully qualified name of the class (with packages)
-
string
$parent: If is set, the class must be a subclass of the class which name is equal to "parent"
static
void
setPhpExtensionFile
(string $phpExtensionFile)
-
string
$phpExtensionFile: The PHP extension file used to store PHP class