摘要:
$row['formated_goods_price'] = number_format($row['goods_price'], 2, '.', ''); number_format() 函数通过千位分组来格式化数字。 注释:该函数支持一个、两个或四个参数(不是三个)。 语法 number_for 阅读全文
摘要:
$now = gmtime(); 为了获取的时间不会出现错误使用gmtime 使用time()有可能会出现晚上12点到早上8点的时间算成是前一天的 要想显示正确的时间段, 需要在php配置文件中 加上 [Date]; Defines the default timezone used by the 阅读全文
摘要:
URL编码 编辑 url编码是一种浏览器用来打包表单输入的格式。浏览器从表单中获取所有的name和其中的值 ,将它们以name/value参数编码(移去那些不能传送的字符,将数据排行等等)作为URL的一部分或者分离地发给服务器。不管哪种情况,在服务器端的表单输入格式样子象这样: theName=Ic 阅读全文
摘要:
$default_currency=get_default_currency(); $_COOKIE['currency'] = $default_currency['currency']; $_COOKIE['currency_id'] = $default_currency['currencie 阅读全文