PHP cos() Function

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

float cos ( float $arg )

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

Example -

ParameterDescription
argAn angle in radians

Return Values -

The cosine of arg