cannot use object of type stdclass as array
snippet in php

cannot use object of type stdclass as array

user3387

$obj_user = json_decode($user, true);

use json_decode($obj, true); 	// add true