How do I round up a number?
<?php
$value = 25.01;
echo ceil($value);
?>
This will print 26.
Comment on this Question and Answer >>>
ASK A QUESTION
More numbers PHP Questions
How do I format a number with commas like a monetary value?How do I generate a random number?
I got a weird problem on float number. I stored an integer number into an array like $number[$i]['duration']= 9 ,and return this array to main function. Then I need to do some calculation in main function with this number like: 1.$temp=0.5 2.var_du
How do I work out the remainder of a division?
How do I force a value to be treated as a number?
