近期重裝開發機器環境,運行項目發現報錯
count(): Parameter must be an array or an object that implements Countable
查詢官方手冊發現7.2版本的php有更新,count傳入非數組的變量會出現warning:
升級php版本時需注意。
近期重裝開發機器環境,運行項目發現報錯
count(): Parameter must be an array or an object that implements Countable
查詢官方手冊發現7.2版本的php有更新,count傳入非數組的變量會出現warning:
升級php版本時需注意。
shell腳本獲取腳本所在目錄 執行腳本的父目錄不一定是當前的工作目錄。 url=$(dirname $(readlink -f $0))