Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how match array in laravel collection

$collection = collect([
    [1, 2, 3],
    [4, 5, 6],
    [7, 8, 9],
]);

$collapsed = $collection->collapse();

$collapsed->all();

// [1, 2, 3, 4, 5, 6, 7, 8, 9]
 
PREVIOUS NEXT
Tagged: #match #array #laravel #collection
ADD COMMENT
Topic
Name
5+3 =