$collection = collect([1, 2, 3, null, false, '', 0, []]); $collection->filter()->all(); // [1, 2, 3] Copy. 與 filter 相對的方法可以檢視reject。
確定! 回上一頁