Example 1 — Basic Hyperbolic Sine
Try sinh() with a few simple values.
<?php
echo sinh(0), PHP_EOL;
echo round(sinh(1), 4), PHP_EOL;
echo round(sinh(-1), 4), PHP_EOL; How It Works
- sinh(0) is 0, just like sin(0).
- sinh(1) is about 1.1752 after rounding.
- sinh(-1) gives the same number with a negative sign.
- This shows that sinh() is an odd function.

