What is the correct formula to convert the result of the sin() function from radians to degrees in PHP?

When using the sin() function in PHP, the result is in radians by default. To convert this result to degrees, you can use the rad2deg() function. This function takes the radian value as a parameter and returns the equivalent value in degrees.

$radians = sin($angle);
$degrees = rad2deg($radians);
echo $degrees;