PHP floor() FunctionPHP floor() function is mathematical function, which is used to find the fractions down. It returns the next lowest integer value (as float). Syntax:
Example 1Output: Your number is :3.3 By using 'floor()' function your value is:3 Example 2Output: Your number is :7.333 By using 'floor()' function your value is:7 Example 3Output: Your number is :-4.8 By using 'floor()' function your value is:-5 Example 4Output: Your number is :-0.6 By using 'floor()' function your value is:-1
Next TopicPHP Math
|