You are here : phpmathtan

tan() - math

tan() returns the tangent of the arg
   parameter.  The arg parameter is in radians.
Parameters :
  • arg - The argument to process in radians

  • Syntax

    float tan
         ( float $arg
        )


    Example

    <?phpecho tan(M_PI_4); // 1?>


    Output / Return Value


    Limitations


    Alternatives / See Also


    Reference