У меня есть этот массивэхо из значений массива в ссылке
[chest] => Array(
[id] => 125835
[name] => Warmongering Gladiator's Chain Armor
[icon] => inv_chest_mail_raidhunter_p_01
[quality] => 4
[itemLevel] => 710
[tooltipParams] => Array(
[set] => Array(
[0] => 125835
[1] => 125838
[2] => 126038)
[transmogItem] => 71464
[timewalkerLevel] => 100
)
Я эхо вне [ID], [значок], [качество], [комплект]
$items = $r['result']['items'];
echo 'chest: ID=' . $items['chest']['id'] . ', quality = ' . $items['chest']['quality'] . ', icon = ' . $items['chest']['icon'] . "\n";
foreach($items['legs']['tooltipParams']['set'] as $value){
echo ''.$value.':';
}
сейчас Мне нужно отобразить информацию в html-ссылке. Я пробовал так:
echo "<a href="//www.wowhead.com/item=. $items['chest']['id'] ." class=". $items['chest']['quality'] .pcs=. $value ."><img src="http://www.wow.zamimg.com/images/wow/icons/large/. $items['chest']['icon'] ." alt="some_text"></a>"
Ваши котировки необходимо посещать. Вы можете видеть из подсветки синтаксиса. –