You are here : phpmathcos

cos() - math

cos() returns the cosine of the arg
   parameter.  The arg parameter is in radians.
Parameters :
  • arg - An angle in radians

  • Syntax

    float cos
         ( float $arg
        )


    Example

    <?phpecho cos(M_PI); // -1?>


    Output / Return Value


    Limitations


    Alternatives / See Also


    Reference