tanh() function in PHP is a mathematical function that returns the hyperbolic tangent of a number. It calculates the ratio of the hyperbolic sine to the hyperbolic cosine of the input value.
$result = tanh($number);
$number: The input value for which the hyperbolic tangent will be returned.
In the following example the
tanh() function is used to print the tanh of
The output will be: