php abs function how to use?
Action ABS () function returns the absolute value is a number. The syntax is abs (number), if the argument number is float, return type is also float, otherwise it returns integer (as float usually has a bigger value range than integer).
ABS () function operates : the role of ABS () function returns the absolute value is a number.
grammar:
parameter:
number must be a number.
Description: Returns the absolute value of the parameter, if the parameter is a float, the return type is float, if the parameter is int, return type int, if the parameter string is a string, 0 is returned;
php abs () function uses examples:
Output:
These are php abs function how to use? Details