Complete PHP Math Reference
The cosh() function returns the hyperbolic cosine of a number (equivalent to (exp(x) + exp(-x)) / 2).
| Parameter | Description |
|---|---|
| x | Required. A number |
In the following example we will return the hyperbolic cosine of different numbers:
The output of the code above will be:
Complete PHP Math Reference
Your message has been sent to W3Schools.