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 singleton pattern in php?
What is php oops concepts?
How to reset/destroy a cookie in php?
Does php have future?
How can I use single quotes in single quotes in php?
How many keywords are there in php?
What php framework does wordpress use?
What are psrs?
What's the output of the ucwords function in this example?
Tell us how to create an array of a group of items inside an html form?
Difference between array_combine and array_merge?
What is laravel php?
What is a query in php?
Explain me what is the w3c?
How to list all values of submitted fields?