首页 > 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 ru zh eo
前一个  下一个  编辑  重命名  撤销  搜索  管理  
文档  
警告! 该页面未翻译。  参见英文版 
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 class as a method.
_unknown Calling an unknown method or property.

参见

Methods Implementation, Enumeration Management, Unknown Special Method Management