Jump to: navigation, search

Php floor

From w3cyberlearnings

Contents

PHP function floor

This function returns the largest value that is not greater than X.

Syntax floor

X is an integer.

floor(X)

Example 1

<?php
echo floor(3.9);
echo "<br/>";
echo floor(-3.9);
?>

Output

3
-4


Related Links


Navigation
Web
SQL
MISC
References