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
 
<absacosh>
^Math FunctionsLast updated: Mon, 26 Oct 2026

acos

(PHP 4, PHP 5, PHP 7, PHP 8)

acos — Arc cosine

Description

function acos(float $num): float

Returns the arc cosine of num in radians. acos() is the inverse function of cos(), which means that $num == cos(acos($num)) for every value of num that is in the domain of acos().

Parameters

num

The argument to process

Return Values

The arc cosine of num in radians.

See Also


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