Anyone know how to assign stdClass value to variable ?
I have a stdClass object and when I print it using var_dump($userdetails->emailaddress) , it does print out the value as String(31)"[email protected]";
but when I try to assign the onject value to variable , let say : $to = $userdetails->emailaddress; the $to value become NULL ...
Anyone can help ?