.

Thursday, October 20, 2011

Home » » PHP code - floor

PHP code - floor

floor() function is returns the value of a number rounded downwards to the nearest integer.



Syntax :
floor(x)

x = number
Example :
<?php
$number="4.5";
$floor=floor($number);

echo $floor;
?>

Output :
4

0 komentar:

Post a Comment