📜  php轮函数以模式传递参数. - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:00.680000             🧑  作者: Mango

代码示例1
";
 
// round to nearest odd value
echo(round(10.5,0,PHP_ROUND_HALF_ODD));
echo "
"; // round towards zero echo(round(10.5,0,PHP_ROUND_HALF_DOWN)); echo "
"; // round away from zero echo(round(10.5,0,PHP_ROUND_HALF_UP)); ?>