Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<cosdecbin>
^Math FunctionsLast updated: Mon, 26 Oct 2026

cosh

(PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8)

cosh — Hyperbolic cosine

Description

function cosh(float $num): float

Returns the hyperbolic cosine of num, defined as (exp($num) + exp(-$num))/2.

Parameters

num

The argument to process

Return Values

The hyperbolic cosine of num

See Also


<cosdecbin>
^Math FunctionsLast updated: Mon, 26 Oct 2026