如果用Laravel,也可以用collection 裡面map 的方法。 <?php $result = collect($array)->map(function($each_num){ return pow($each_num, 3); // pow(x ...
確定! 回上一頁