I need an example, please give an example.
Enter your PHP question at the top of this page and click Get An Answer.
Tell us how quickly you want your PHP question answered.
Connect with your programmer via online chat or telephone call.
I need an example, please give an example.
It's very simple in php, use this followings:
deg2rad — Converts the number in degrees to the radian equivalent
<?php
echo deg2rad(45); // 0. ***-***-**** 97
var_dump(deg2rad(45) === M_PI_4); // bool(true)
?>
ref: http://php.net/manual/en/function.deg2rad.php
rad2deg — Converts the radian number to the equivalent number in degrees
<?php
echo rad2deg(M_PI_4); // 45
?>
thank you.
Byron Narciso
Programmer
Whether you have a quick question while preparing your taxes, troubleshooting a computer problem, or need to hire an attorney, ExpertHelp is the most convenient and affordable way to connect with the right service professional to get the job done.
ExpertHelp has been in business since 2011, is an A+ Rated Better Business Bureau accredited member, and offers a 100% satisfaction guarantee on every question you ask!