Using data in an array
问题 On my php page, I am getting the follow output: Array ( [contact/email] => users_name@email_address.com ) This is produced via the following line in the php code: print_r($openid->getAttributes()); How do I extract the text users_name@email_address.com from that array and stick it into a variable $strEmail; ? So when I echo the variable: echo $strEmail; It should output the following on screen: users_name@email_address.com 回答1: Assign the array to a variable and then you can easily access it: