Return the sine of different numbers:
<?phpecho(sin(3) . "<br>");echo(sin(-3) . "<br>");echo(sin(0) . "<br>");echo(sin(M_PI ) . "<br>");echo(sin(M_PI_2));?>The sin() function returns the sine of a number.
sin( number );
parameter | describe |
---|---|
number | Required. Specifies a value in radians. |
Return value: | The sine of number . |
---|---|
Return type: | Float |
PHP version: | 4+ |