Answer Posted / saurabh rastogi
$var=7.5;
$c_var=ceil($var);
echo $c_var; // Outputs 8
$var=7.5
$c_var=floor($var);
echo $c_var; // Outputs 7
Is This Answer Correct ? | 29 Yes | 2 No |
Post New Answer View All Answers
What is traits? How it is used in php?
When is a conditional statement ended with an endif?
Is php required for wordpress?
What is prepare in php?
How to download files from an external server with code in php?
What is $_ request?
What is self in php?
Can you specify the "new line" character in single-quoted strings?
What is the difference between mysqli_fetch_object() and mysqli_fetch_array()?
What is a php web application?
What is the difference between explode() and split() functions?
What is difference between isset and empty in php?
How can cross site request forgery csrf be prevented?
Is python easier than php?
What is split function in php?