PHP deg2rad() - Math Functions
What is deg2rad Function?
How to convert degree to radian equivalent?
Explanation
The "deg2rad()" function converts the number in degrees to the radian equivalent.
Syntax:
deg2rad(degree_number)
In the above syntax "degree_number" is the degree to be converted to radians.
Example :
<?php
echo deg2rad("45"). "<br/>";
?>
Result :
0.785398163397
In the above example the "45" degree is converted to its radian value.