The round() function is a number to the nearest integer.
Syntax:
round(x)
x = number
x = number
Example:
<?php
$number=0.6;
$round=round($number);
echo $round;
?>
$number=0.6;
$round=round($number);
echo $round;
?>
Output :
1
Easy way to learning php
The round() function is a number to the nearest integer.
0 komentar:
Post a Comment