Php cos
From w3cyberlearnings
Contents |
PHP function cos
This function returns the cosine of X input, and X is a given radians.
Syntax cos
X is an integer and its value in radians.
cos(X);
Example 1
<?php echo cos(PI()); echo "<br/>"; echo cos(6); ?>
Output
-1 0.96017028665037