Return the hyperbolic tangent of different numbers:
The tanh() function returns the hyperbolic tangent of a number, which is equal to sinh(x)/cosh(x).
Parameter | Description |
---|---|
number | Required. Specifies a number |
Return Value: | The hyperbolic tangent of number |
---|---|
Return Type: | Float |
PHP Version: | 4.1+ |