php - Using data in an array -
on php page, getting follow output:
array ( [contact/email] => users_name@email_address.com )
this produced via following line in php code:
print_r($openid->getattributes());
how extract text users_name@email_address.com
array , stick variable $stremail;
?
so when echo variable:
echo $stremail;
it should output following on screen:
users_name@email_address.com
assign array variable , can access it:
$attributes = $openid->getattributes(); $stremail = $attributes['contact/email']; echo $stremail; // => users_name@email_address.com
Comments
Post a Comment