@@ -0,0 +1,14 @@
+<?php
+namespace Core;
+
+class Database{
+ function where($where){
+ return $this;
+ }
+ function order($order){
+ function limit($limit){
+}
@@ -15,4 +15,8 @@ include BASEDIR.'/Core/Loader.php';
*/
spl_autoload_register('\\Core\\Loader::autoload');
-App\Controller\Home\Index::test();
+/**
+ * 面向对象--链式操作
+ */
+//$db = new Core\Database();
+//$db->where()->order()->limit();
@@ -0,0 +1,11 @@
+spl常用数据结构
+ 堆、栈、队列、数组
+php链式操作
+魔术方法
+ __get
+ __set
+ __call
+ __callStatic
+ __toString //将对象当字符串使用
+ __invoke //将对象当函数使用