晴釣雨読

As the train goes through the mountain path, leaning on the lightcyan window, only I would think about my fun.

配列にnullが混ざってなければtrueを返してくれる人。

<?php
$arr = [1, null, 3];
if (!Arr::first($arr, function ($value) {
    return empty($value);
}, true)) {
    return false;
}
return true;

 

むかーし自分で書いておきながら今見るとわからないんですが大丈夫ですか俺www

これで正しいことはわかってるんだけど、わからん。

わかりにくいのは、、コールバックの返却がヘルパの返却では裏返しになってるせいだな。