Easy Tutorial
❮ Func Mysqli Close Func Http Headers Sent ❯

PHP acos() Function

PHP Math Reference Manual

Example

Returns the arccosine of different numbers:


Definition and Usage

The acos() function returns the arccosine of a number.


Syntax

Parameter Description
number Required. Specifies a number between -1 and 1.

Technical Details

Return Value: The arccosine of the number. If the number is outside the range of -1 to 1, it returns NAN.
Return Type: Float
--- ---
PHP Version: 4+
--- ---
❮ Func Mysqli Close Func Http Headers Sent ❯