The PHP abs() function returns the absolute (positive) value of a number.

				
					<?php
echo(abs(-3);
?>
				
			

Syntax

				
					abs(number)