Javatpoint Logo
Javatpoint Logo

PHP deg2rad() Function

PHP 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.

Parameter Description Required/Optional
number Specify the degree to convert Required

Example 1

Output:

Your degree number is : 15
By using 'deg2rad()' function, your radian equivalent is :0.26179938779915

Example 2

Output:

Your Degree number is : 45
By using 'deg2rad()' function, your radian equivalent is :0.78539816339745

Example 3

Output:

Your Degree number is : 45
bool(true)

Example 4

Output:

Your degree number is : 180
180 degrees is equal to 3.1415926535898 radians.

Next TopicPHP Math





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA