Answers for "object of class stdclass could not be converted to string php laravel"

PHP
0

none

/*
$data is indeed an array, but it's made up of objects.

Convert its content to array before creating it*/
$data = array();
foreach ($results as $result) {
   $result->filed1 = 'some modification';
   $result->filed2 = 'some modification2';
   $data
Posted by: Guest on January-01-1970

Code answers related to "object of class stdclass could not be converted to string php laravel"

Browse Popular Code Answers by Language