请问哪位大侠知道如何修改下面这句,使用number_format(), 让输出从: Buy 1000000 for $ 89.00 each
改为:Buy 1,000,000 for $ 89.00 each echo $this->__('Buy %1$s for %2$s each', $_price['price_qty'], $_price['formated_price_incl_weee_only'])
改为:Buy 1,000,000 for $ 89.00 each echo $this->__('Buy %1$s for %2$s each', $_price['price_qty'], $_price['formated_price_incl_weee_only'])
//输出第一种格式
echo ' Buy 1000000 for $ 89.00 each ';
//输出第二种格式
echo " Buy number_format($var) for $ 89.00 each ";?>
要改为:Buy 1,000,000 for $ 89.00 each