Use of undefined constant PHP_ROUND_HALF_DOWN - assumed 'PHP_ROUND_HALF_DOWN' Warning (2): Wrong parameter count for round() [APP/views/helpers/time_left.PHP,line 14]
现在,当我将单引号添加到mode参数时,第一个错误消失,但“错误的参数计数”仍然存在.我正在调用函数如下:
$days = round(($difference/$day),PHP_ROUND_HALF_DOWN);
感谢您的帮助!