Ken Graham

0

votes
0

answer
26

views

Array getting converted to stdClass on addition

I have two arrays which I want to add under certain conditions which is provided by for loop. But I get the error, "Object of class stdClass could not be converted to number." on the last line. $reld=DB::table('jp')->select('cp')->get()->toArray(); //dd($reld); for($i=19;$i float(170.6) } [1]=> obj...
Ken Graham