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
How to set cookies in PHP?
What are helpers in php?
What is $_ request in php?
Why does php need server?
What is $_ files in php?
What are the design patterns in php?
What is the purpose of constant() function?
What is the difference between array_map () and array_shift ()?
How to run a php script?
How do I find out the number of parameters passed into function9?
A process is identified by a unique___
How do functions work?
How to include a file code in different files in php?
Which database is best for php?
What is the mysql injection?