.

Tuesday, October 18, 2011

Home » » PHP code - round

PHP code - round

The round() function is a number to the nearest integer.



Syntax:
round(x)

x = number

Example:
<?php
$number=0.6;

$round=round($number);

echo $round;

?>

Output :
1

0 komentar:

Post a Comment