wow wow - 6 months ago 8
PHP Question

how to get single value from php array

Example

print_r($myarray)


Array
(
[0] => Array
(
[id] => 6578765
[name] => John Smith
[first_name] => John
[last_name] => Smith
[link] => http://www.domain.com
[gender] => male
[email] => email@domain.com
[timezone] => 8
[updated_time] => 2010-12-07T21:02:21+0000
)
)


Question :

How to get the
$myarray
in single value. Like

echo $myarray['email']; will show email@domain.com

Answer
echo $myarray[0]['email'];

echo $myarray[0]['gender'];

...etc