Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel object to array

function objectToArray(&$object)
{
    return @json_decode(json_encode($object), true);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #object #array
ADD COMMENT
Topic
Name
5+4 =