Complete PHP Math Reference
The sin() function returns the sine of a number.
| Parameter | Description |
|---|---|
| x | Required. A number |
Note: The sin() function returns a numeric value between -1 and 1, which represents the sine of the parameter x.
In the following example we will return the sine of different numbers:
The output of the code above will be:
Complete PHP Math Reference
Your message has been sent to W3Schools.