随笔分类 -  PHP OOP

摘要:public protected private var(public) 阅读全文
posted @ 2015-05-04 14:56 Mirrorhanman 阅读(124) 评论(0) 推荐(0)
摘要:Constructorvoid __construct ([mixed $args = ""[, $... ]])void __destruct ( void ) parent::__construct() to run a parent constructor 阅读全文
posted @ 2015-05-04 14:55 Mirrorhanman 阅读(153) 评论(0) 推荐(0)
摘要:spl_autoload_register 阅读全文
posted @ 2015-05-04 14:44 Mirrorhanman 阅读(97) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2015-05-04 14:39 Mirrorhanman 阅读(135) 评论(0) 推荐(0)
摘要:Properties : class memberProperties : also referred to "attributes" or "fileds"declare a property: public private protected var(treated as public)acce... 阅读全文
posted @ 2015-05-04 14:34 Mirrorhanman 阅读(191) 评论(0) 推荐(0)
摘要:http://php.net/manual/zh/language.oop5.basic.php1. class class contain contants(常量) variables(变量or属性) and function(方法)var; }}?> pseudo-variable(伪... 阅读全文
posted @ 2015-05-04 12:42 Mirrorhanman 阅读(179) 评论(0) 推荐(0)