Convert radians to degrees in PHP

Description

The following code shows how to convert radians to degrees.

Example


  //w  w  w .j  ava  2 s . c o  m
<?php
    echo rad2deg(pi()) . "<br>";
    echo rad2deg(pi()/4);
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Development »




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