Easy Tutorial
❮ Pdo Setattribute Func Filesystem Set File Buffer ❯

PHP tanh() Function

PHP Math Reference Manual

Example

Returns the hyperbolic tangent of different numbers:


Definition and Usage

The tanh() function returns the hyperbolic tangent of a number, defined as sinh(x)/cosh(x).


Syntax

Parameter Description
number Required. Specifies a number.

Technical Details

Return Value: The hyperbolic tangent of the number.
Return Type: Float
--- ---
PHP Version: 4.1+
--- ---
❮ Pdo Setattribute Func Filesystem Set File Buffer ❯