<?
//#
//#
$sale_products =
array(
array("White_13", "50", "100")
array("Black_31", "50", "100")
array("Green_12", "50", "100")
);
foreach ($sale_products as $product) {
echo '
<div>
<div>Product Name: '.$product[1].'</div>
<div>Price: '.$product[2].'</div>
<div>SALE PRICE: '.$product[3].'</div>
</div>
';
}
//#
//#
?>
那是我上面的代码。white_1
etc 是每个产品的 SKU 。