float sin ( float num ) calculates the sine value of the number provided as its only parameter : sin « Math « PHP






float sin ( float num ) calculates the sine value of the number provided as its only parameter

 
<?
    $sin1 = sin(10);
    $sin2 = sin(deg2rad(80));
?>
  
  

Related examples in the same category