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
Explain about PHP cookies?
How is it possible to return a value from a function?
Is it possible to use com component in php?
How to include variables in double-quoted strings in php?
What is session in c#?
Explain about the data types in PHP?
Do you know how can we check the value of a given variable is a number?
Tell me when a conditional statement is ended with an endif?
What are the rules to declare a php variables?
Xplain is it possible to use com component in php?
Is json a string php?
How to fix "headers already sent" error in php
Explain how to submit form without a submit button.
How to register a variable in PHP session?
Tell me what is the difference between exception::getmessage and exception::getline?