Convert degrees to radians in PHP

Description

The following code shows how to convert degrees to radians.

Example


/*  w w  w.  j ava 2s.  c o  m*/
<?php
    echo deg2rad("45") . "<br>";
    echo deg2rad("90") . "<br>";
    echo deg2rad("360");
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Development »




Environment
Error
Hash
Include
Locale
Math
Network
Output
Reflection
PHP Regular Expressions