Name
class_alias
Synopsis
bool class_alias(stringname
, stringalias
)
Creates an alias to the class name
.
From then on, you can reference the class (for example, to instantiate
objects) with either name
or
alias
. Returns true
if the alias could be created; if not,
it returns false
.
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.