Home > dev > api > cat > special 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Search  Administration  
Documentation  
Warning! This page is not translated.  See english version 
Special Methods
Special methods are methods declared in classes, whose name begins with an underscore character, and that are called by the interpreter in some special situations.

They are eight different special methods, and they are all optional.

_init Class initialization.
_exit Class clean-up.
_new Object instanciation.
_free Object release.
_next Object or class enumeration.
_get Array read operator.
_put Array write operator.
_call Using the object or the класс as a method.
_unknown Calling an unknown method or property.

See also

Methods Implementation, Enumeration Management, Unknown Special Method Management