PHP cos() Function

The cos() function is used to converts the cosine of a number.

Demo :



Type No :  
Decimal number is : 1

Example :

Example 1: Type No : -3
Example 2: Type No : 3
Example 3: Type No : 0
<?php
 $cos_no = -3;
 $result = cos($cos_no);
 echo $result;
?>

In the above code is used to converts the cosine of a number.In the cos() functions have used one arguments that name is float number.

Free Download Script :

If you need cos() function demo code download from following link.

Download




Content