Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what will do ceil() and floor() in PHP?

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


Please Help Members By Posting Answers For Below Questions

How to set cookies in PHP?

1095


What are helpers in php?

952


What is $_ request in php?

902


Why does php need server?

986


What is $_ files in php?

1120


What are the design patterns in php?

987


What is the purpose of constant() function?

1151


What is the difference between array_map () and array_shift ()?

1038


How to run a php script?

1020


How do I find out the number of parameters passed into function9?

982


A process is identified by a unique___

1073


How do functions work?

1120


How to include a file code in different files in php?

1109


Which database is best for php?

1015


What is the mysql injection?

997