vrazbros
Новичок
как вывести значение многом массива ?
есть массив $field_asin, вод его содержание, вывожу как print_r($field_asin);
как вывести значение поля [author] ?
делаю так echo $field_asin[0]['data']['author'][0];
но ничего не выводит
есть массив $field_asin, вод его содержание, вывожу как print_r($field_asin);
как вывести значение поля [author] ?
PHP:
Array
(
[0] => Array
(
[value] => 0439785960
[data] => stdClass Object
(
[asin] => 0439785960
[detailpageurl] => [url]http://www.amazon.com/gp/redirect.html%3FASIN=0439785960%26tag=ws%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0439785960%253FSubscriptionId=1XFK01HK9NZWGPENWGG2[/url]
[smallimageurl] => [url]http://g-ec2.images-amazon.com/images/I/11BSDZX43ZL.jpg[/url]
[smallimageheight] => 75
[smallimagewidth] => 52
[mediumimageurl] => [url]http://g-ec2.images-amazon.com/images/I/21WET50G45L.jpg[/url]
[mediumimageheight] => 160
[mediumimagewidth] => 110
[largeimageurl] => [url]http://g-ec2.images-amazon.com/images/I/515PAWDZTEL.jpg[/url]
[largeimageheight] => 500
[largeimagewidth] => 344
[author] => Array
(
[0] => J.K. Rowling
)
[editorialreview] => Harry Potter and the Half-Blood Prince --Harry Potter #6--
[binding] => Paperback
[listamount] => 999
[listcurrencycode] => USD
[listformattedprice] => $9.99
[title] => Harry Potter and the Half-Blood Prince (Book 6)
[amount] => 999
[currencycode] => USD
[formattedprice] => $9.99
[availability] => Usually ships in 24 hours
[pricedate] => 2007-09-07 12:30:12
)
[view] => Cover image
Harry Potter and the Half-Blood Prince (Book 6)
by J.K. Rowling
$9.99 (Paperback)
)
)
но ничего не выводит