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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -