abs() function in PHP

abs() is an PHP’s inbuilt function. It returns a positive number. Its parameter accepts a numeric value that may be positive or negative but will return only a positive value. See example below:-