<?php { $iterator = new RecursiveArrayIterator($array); $recursive = new RecursiveIteratorIterator($iterator, RecursiveIteratorIterator::SELF_FIRST); foreach ($recursive as $key => $value) { if ($key === $needle) { } } return $aHitList; } $id = $_GET["id"]; $link = json_decode($link, true); $name = recursiveFind($link, "market_hash_name"); #echo '<a href="http://steamcommunity.com/market/listings/730/'.$csv.'" />'; # echo '</a>'; ?>
Wyświetla on listę przedmiotów danego gracza w liście, i chciałbym dodać do tego linki, np. gdy np. w tej liście jest "Glock-18 | Water Elemental (Field-Tested)" byl na tym odnośnik do "http://steamcommunity.com/market/listings/730/Glock-18 | Water Elemental (Field-Tested)" czyli "http://steamcommunity.com/market/listings/730/<PRZEDMIOT Z LISTY>" i tak do każdego.
Mam nadzieje że zrozumiałe.

@ref
proszę o pomoc.
