Source Code:
(back to article)
<?php $angle_in_degrees = 45; // Convert the angle from degrees to radians using the deg2rad() function $angle_in_radians = deg2rad($angle_in_degrees); // Output the angle in radians echo $angle_in_radians; ?>
Result:
Report an issue