Easy Tutorial
❮ Php Ajax Livesearch Pdostatement Fetchobject ❯

PHP cos() Function

PHP Math Reference Manual

Example

Returns the cosine of different numbers:


Definition and Usage

The cos() function returns the cosine of a number.

Note:


Syntax

Parameter Description
number Required. Specifies a number.

Technical Details

Return Value: The cosine of the number.
Return Type: Float
--- ---
PHP Version: 4+
--- ---
❮ Php Ajax Livesearch Pdostatement Fetchobject ❯