Name
deg2rad()
Synopsis
float deg2rad ( float num
)
The deg2rad()
function converts degrees to radians. Radians are calculated as being $degrees
multiplied by the mathematical constant pi, then divided by 180.
$sin1 = sin(deg2rad(80));
Get PHP in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.