php debug 二三事
發表於 : 2018-03-23, 00:27
1. 使用 error_log 結合 print_r 列出變數的內容以方便偵錯.
如: $title 的內容,為 array 也沒問題
error_log( print_r( $title, true ) );
2. smarty debug
{debug}
一般加在 template 的最後以全部顯示資料
如: $title 的內容,為 array 也沒問題
error_log( print_r( $title, true ) );
2. smarty debug
{debug}
一般加在 template 的最後以全部顯示資料