Radians and degrees are 2 different quantitative approaches to denote an angle, in PHP, you can convert a radian value to a degree by the function rad2reg() and a degree value to radian by the function deg2rad():
$degrees = rad2deg('3.1416'); // $degrees = 180
$radians = deg2rad(180); // $radians = 3.14159265359
You should also read:
- PHP: Convert Degrees to Radians and Convert Radians to Degrees
- CSS: Rotate Text / Image Elements by 90, 180 or 270 Degrees
- PHP: Convert between Numerical Bases | Binary Number, Decimal Number, Octal Number and Hexadecimal Number Conversions
- How to convert .png, .gif, .bmp or .jpg images to .ico icons to make favicon.ico for your website?
- PHP: Difference between htmlspecialchars() and htmlentities() Functions


Facebook
Twitter
Google Plus