PHP Tutorial - PHP acosh() Function






Definition

The acosh() function returns the inverse hyperbolic cosine of a number.

Syntax

PHP acosh() Function has the following syntax.

acosh(number);

Parameter

ParameterDescription
numberRequired. Specifies a number

Return

PHP acosh() function returns the inverse hyperbolik cosine of number.

Example

Return the inverse hyperbolic cosine of different numbers:


<?php
echo(acosh(7) . "\n");
echo(acosh(56) . "\n");
echo(acosh(2.45));
?>

The code above generates the following result.