随笔分类 - PHP OOP
摘要:public protected private var(public)
阅读全文
摘要:Constructorvoid __construct ([mixed $args = ""[, $... ]])void __destruct ( void ) parent::__construct() to run a parent constructor
阅读全文
摘要:spl_autoload_register
阅读全文
摘要:Constants differ from normal variables in that you don't use the$symbol to declare or use them.showConstant();echo $class::constant."\n"; // 自 PHP 5.3...
阅读全文
摘要:Properties : class memberProperties : also referred to "attributes" or "fileds"declare a property: public private protected var(treated as public)acce...
阅读全文
摘要:http://php.net/manual/zh/language.oop5.basic.php1. class class contain contants(常量) variables(变量or属性) and function(方法)var; }}?> pseudo-variable(伪...
阅读全文