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>';
}
精彩评论