Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel get query result as array

$result = array_map(function ($value) {
    return (array)$value;
}, $result);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #query #result #array
ADD COMMENT
Topic
Name
8+2 =