摘要:
1.获取字符串长度:preg_match_all('/./us', $only, $match);echo count($match[0]);2.Php除法取整2.1.round—对浮点数进行四舍五入[php]viewplaincopyprint?floatround(float$val[,int$precision])floatround(float$val[,int$precision])返回将val根据指定精度precision(十进制小数点后数字的数目)进行四舍五入的结果。precision也可以是负数或零(默认值)。[php]viewplaincopyprint?//
阅读全文
posted @ 2014-02-08 11:48
dinoy
阅读(350)
推荐(0)
编辑