开发者

php, arrays, extracting values

require_once 'include/load_it.php';
$nice = ($_GET['nice']);

$Key = 'tfvs7'; // Your API key
$remix  = new Load_Service_Con($Key);

$result = $new->product($nice)->show(array('salePrice','url'))->query();

echo $result;

I am trying to figu开发者_如何学Gore out how I can extract the values of the array and echo the values into seperate div's

Thanks


I think you should probably read up on PHP: Arrays

Assuming its a simple array (you could clarify this by posting a var_dump($result).

foreach($result as $data) {
    echo '<div>';
    echo $data;
    echo '</div>';
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜