September 2001
Intermediate to advanced
768 pages
32h 45m
English
float deg2rad(float degrees) Converts a value in degrees to its radian value.
Returns:
Radian value of the given degrees
Description:
Calculates the equivalent value of radians based on the specified argument, in degrees.
Version:
PHP 3 since 3.0.4, PHP 4
See also:
rad2deg()
Example:
$deg = 180.0; $rad = deg2rad($deg); echo "1/2 of a circle is $deg degrees or also $rad radians\n"; |
Read now
Unlock full access