After following, you can keep track of his dynamic information in a timely manner
Courses in the relevant section:PDO new record operation
rowCount() PDO添加、刪除返回的受影響的記錄話,用于判斷>0
2019-05-160個贊
ceil 向上取整 4.1 = 5
2019-05-240個贊
$_SERVER['PHP_SELF'] PHP獲取當前腳本。
2019-05-240個贊
Courses in the relevant section:Definition and access of static members
為什么要用到靜態(tài):public static $nation = '中國'; 不會放到動態(tài)內(nèi)存中,跟常量差不多,可以在多個對象對共享數(shù)據(jù)。
對象方法中不能訪問靜態(tài)屬性。如需要要訪問,需要用類訪問:類外部demo2::$price 內(nèi)部:self::$price
靜態(tài)方法中不能訪問動態(tài)成員(對象屬性)
2019-04-270個贊
Courses in the relevant section:Query builder for database operations (1)
TP框架中,類文件名跟類名用大寫。
2019-08-050個贊
Courses in the relevant section:Query builder for database operations (2)
tp框架中 find() 獲取一條記錄,select()獲取全部記錄,value()獲取字段中的1個值。
2019-08-050個贊
Courses in the relevant section:Model operation database(1)
TP框架 模型中g(shù)et()獲取一條記錄。
2019-08-050個贊
Courses in the relevant section:The difference and connection between framework and CMS (1)
變量區(qū)分大小寫,函數(shù)不區(qū)分
2019-08-060個贊