I am receiving an array in response of a request. And when I do print_r on it, this is what I am getting Array( [receiver] => {:email=>"email@domain.com"}).
I am not able to understand how can I access value of “:email”.
Please help.
EDIT:
Here is the var_dump of the response.
array ( 'receiver' => '{:email=>"email@domain.com"}' )
Thanks.
Use regular expression to get the email.
Explanation: