You are here : phpmathdeg2rad

deg2rad() - math

This function converts number from degrees
   to the radian equivalent.
Parameters :
  • number - Angular value in degrees

  • Syntax

    float deg2rad
         ( float $number
        )


    Example

    <?phpecho deg2rad(45); // 0.785398163397var_dump(deg2rad(45) === M_PI_4); // bool(true)?>


    Output / Return Value


    Limitations


    Alternatives / See Also


    Reference