deg2rad

Converts the number in degrees to the radian equivalent

Syntax

deg2rad ( float $number ) : float

Parameters

number

Angular value in degrees

Return

The radian equivalent of number

Examples

<?

$number = 180;

$return = deg2rad($number);

echo $return;

?>
3.1415926535898

PHP

Home Menu