Source Code:
(back to article)
<?php $angle = deg2rad(45); // Get the cosine of the angle using the cos() function $cosine = cos($angle); // Output the cosine of the angle echo $cosine; ?>
Result:
Report an issue