Php deg2rad
From w3cyberlearnings
Contents |
PHP function deg2rad
This function converts degree to radians.
Syntax deg2rad
X is a number represents of degrees.
deg2rad(X);
Example 1
<?php echo deg2rad(180); echo "<br/>"; echo deg2rad(40); ?>
Output
3.1415926535898 0.69813170079773