|
|
PHP deg2rad() - Math Functions
|
Tutorials » Php »
|
Topic |
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.
|
|
A Note |
Learn PHP programming language tutorial with simple and neat example. Hope you enjoy this free tutorial.
Do give us your valuable feedback and suggestions on this online tutorial. This is a Copyright Content.
|
|
|
|