开发者

php, arrays, extracting values

开发者 https://www.devze.com 2023-02-19 07:14 出处:网络
require_once \'include/load_it.php\'; $nice = ($_GET[\'nice\']); $Key = \'tfvs7\'; // Your API key $remix= new Load_Service_Con($Key);
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

精彩评论

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