deg2rad

It converts the number in degrees to the radian equivalent

Example

<?php
echo deg2rad(45);
?>

Output

0.78539816339745

Share