float deg2rad ( float num ) converts degrees to radians. : deg2rad « Math « PHP






float deg2rad ( float num ) converts degrees to radians.

 
$sin1 = sin(deg2rad(80));
  
  

Related examples in the same category

1.Return the distance between two locations in either kilometers or miles