Return the sine of different numbers in PHP
Description
The following code shows how to return the sine of different numbers.
Example
/*from w w w. j av a 2 s.c o m*/
<?php
echo(sin(3) . "<br>");
echo(sin(-3) . "<br>");
echo(sin(0) . "<br>");
echo(sin(M_PI) . "<br>");
echo(sin(M_PI_2));
?>
The code above generates the following result.