共 2 篇文章 |
|
phpStorm实现php断点调试相关配置。xdebug版本:php_xdebug-2.2.5-5.6-vc11-x86_64.dll.ps : php版本和xdebug版本一定要相对应。zend_extension=”D:\wamp\php-5.6.2-x64\ext\php_xdebug-2.2.5-5.6-vc11-x86_64.dll”ps : remote_handler 、remote_host、remote_port 这些都有默认值,但还是建议设置下,至少知道要设置这些参数~这里的debug po... 阅297 转0 评0 公众公开 18-07-27 16:18 |
//第一种:利用round()对浮点数进行四舍五入 echo round($num,2); //10.46 //第二种:利用sprintf格式化字符串 $format_num = sprintf("%.2f",$num); echo $format_num; //10.46 //第三种:利用千位分组来格式化数字的函数number_format() echo number_format($num, 2); //10.46 //或者如下 echo number_format($num, 2, ''&... 阅43 转0 评0 公众公开 18-07-27 10:51 |