Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel collect

$collection = collect(['taylor', 'abigail', null])->map(function($name)
{
    return strtoupper($name);
})
->reject(function($name)
{
    return empty($name);
});
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #collect
ADD COMMENT
Topic
Name
3+2 =