Definition: The Rad2Deg PHP Function is used to convert an angle measured in radians to one measured in degrees. It is written as rad2deg (X) where X is the measurement in radians. It will then return the equivalent measurement in degrees.
Also Known As: Radians converted to degrees
This returns the values:
<?php echo(rad2deg(M_PI_4) . "<br />"); echo(rad2deg(M_PI_2) . "<br />"); echo(rad2deg(2) . "<br />"); echo(rad2deg(0) . "<br />"); ?>