Answers for "local.error: cannot use object of type stdclass as array {"exception":"[object] (error(code: 0): cannot use object of type stdclass as array at"

PHP
10

cannot use object of type stdclass as array

$obj_user = json_decode($user, true);

use json_decode($obj, true); 	// add true
Posted by: Guest on January-27-2021

Code answers related to "local.error: cannot use object of type stdclass as array {"exception":"[object] (error(code: 0): cannot use object of type stdclass as array at"

Browse Popular Code Answers by Language