PHP sinh()
Published Jun 20, 2023
Contribute to Docs
The sinh() function is used to calculate the hyperbolic sine of a given number.
Syntax
sinh(number)
The sinh() function takes one parameter, number, which can be either an integer or a float. It returns the hyperbolic sine of the number as a float value.
Example
The example below illustrates a basic implementation of the function:
<?phpecho sinh(2.5);?>
The example will result in the following output:
6.0502033806203
Codebyte Example
The codebyte example below demonstrates the usage of the sinh() function with a negative number:
Note: The
sinh()function is the inverse of theasinh()function.
Contribute to Docs
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.
Learn PHP on Codecademy
- Looking for an introduction to the theory behind programming? Master Python while learning data structures, algorithms, and more!
- Includes 6 Courses
- With Professional Certification
- Beginner Friendly.75 hours