Facebook Page Twitter Page LinkedIn Page
× PHP Tutorial PHP Advanced PHP Resources


The PHP Math acosh() function returns inverse hyperbolic cosine of a value. The hyperbolic cosine of x is defined as:

acosh

Syntax

acosh(number)

Parameters

number Required. Specify the value.

Return Value

Returns the hyperbolic cosine of a value.

Example:

In the below example, acosh() function is used to find out the hyperbolic cosine of a value.

<?php
echo acosh(0)."\n";
echo acosh(2)."\n";
echo acosh(4)."\n";
?>

The output of the above code will be:

NAN
1.3169578969248
2.0634370688956

❮ PHP Math Functions