cos - chung-leong/qb GitHub Wiki

cos - Cosine

float cos ( float $x )

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

Parameters:

x - The argument to process in radians. It can be a scalar or an array.

Return Value:

The cosine of x. If x is an array, the return value will also be an array.

Version

1.0 and above.