https://avatars.githubusercontent.com/u/6058558

程式狂想筆記

Strict Standards: Only variables should be passed by reference

最近 php 預設設個錯誤 但我程式沒有寫錯… 後來找了一下,參照不能代入 function 裡面 如這個$price = array_shift(get_product_price($product_key)); 因為忘了第二次,所以獨立寫一篇 1 2 $product_price = get_product_price($product_key); $price = array_shift($product_price); 臨時筆記: [PHP]Error: Only variables should be passed by reference PHP 有關參照(Reference)的那些事 | 程式狂想筆記其實我以前就有提到 orz