October 2005
Intermediate to advanced
372 pages
11h 35m
English
sin()
float sin ( float num )The sin() function calculates the sine value of the number provided as its only parameter. The parameter should be passed as radians—you should use deg2rad() to convert degrees to radians.
$sin1 = sin(10);
$sin2 = sin(deg2rad(80));