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 can we set and destroy the cookie in php?
How to assigning a new character in a string using php?
How to read and display a HTML source from the website url?
Are parent constructors called implicitly inside a class constructor?
Can we learn php without html?
How to find length of an array in php ?
How to connect to a url in php?
Which function is used to read a single character from a file in PHP.
What is difference between session and cookie in PHP?
How failures in execution are handled with include() and require() functions?
How do you destroy a particular or all Sessions?
Is multiple inheritance supported in php?
How to get the position of the character in a string in php?
Explain php split() function.
How cookies are trported from browsers to servers?