1.json
php從5.2.0後有了自帶的json擴展
支持json_encode,json_decode,json_last_error函數
如果你的php版本比較低,又需要使用json格式的數據的話,那就必須自己實現json_encode和json_decode的功能了
2。this關鍵字
在php 4.4.9版本中,在object context外使用$this關鍵字會被認爲NULL
在php 5.3.9則出新fatal error.
3.date(Y-m-d)與strtotime()
php 4.4.9與php5.3.10下
strtotime(date(Y-m-d))返回結果不同