PHP Tutorial PHP Advanced PHP Resources
Python Java C++ C C# PHP R SQL DS Algo InterviewQ

PHP - Math sinh() Function



The PHP Math sinh() function returns hyperbolic sine of a value. The hyperbolic sine of x is defined as:

sinh

where e is an Euler's number.

Syntax

sinh(number)

Parameters

number Required. Specify the value.

Return Value

Returns the hyperbolic sine of a value.

Example:

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

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

The output of the above code will be:

0
3.626860407847
27.289917197128

❮ PHP Math Functions

5