/**
* priceFormat
* 价格格式处理
*
* @access public
* @param null
* @since 1.0
* @return object
*/
if(!function_exists('priceFormat')) {
function priceFormat($price)
{
return number_format($price/100,2);
}
}
php number_format金钱 价格 格式处理 由分单位转换成元(保留2为小数)
猜你喜欢
转载自blog.csdn.net/lw545034502/article/details/84998817
今日推荐
周排行