PHP deg2rad() FunctionPHP deg2rad is predefining function, which is used to convert the number in degrees to the radian equipment. Syntax:The given above function convert from degrees to the radiant equipment.
Example 1Output: Your degree number is : 15 By using 'deg2rad()' function, your radian equivalent is :0.26179938779915 Example 2Output: Your Degree number is : 45 By using 'deg2rad()' function, your radian equivalent is :0.78539816339745 Example 3Output: Your Degree number is : 45 bool(true) Example 4Output: Your degree number is : 180 180 degrees is equal to 3.1415926535898 radians.
Next TopicPHP Math
|