Home > PHP > Function > Math > cos()

cos()

cos - Cosine

Syntax

float cos (float $arg)

Arguments

  • arg - An angle in radians

Description

cos() returns the cosine of the arg parameter. The arg parameter is in radians.

Version

PHP 4, 5

Return value

The cosine of arg