Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

array_last in laravel 8

use IlluminateSupportArr;

$array = [100, 200, 300, 110];

$last = Arr::last($array, function ($value, $key) {
    return $value >= 150;
});

// 300
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel
ADD COMMENT
Topic
Name
4+7 =