Using asin() function we are find the arc sine value of arg in radians.
PHP asin() Function Example:
Using asin() function we are find the arc sine value of arg in radians.
Syntax:asin(parameter)
The passing parameter require numeric value between -1 to 1. If parameter value is greater or less then the range then it return NAN value.
Example:
<?php echo (asin(-5)."<br />"); echo(asin(0) . "<br />"); echo(asin(-1) . "<br />"); echo(asin(1) . "<br />"); echo(asin(5)); ?>
Output:
The output of this example is:
NAN 0 -1.5707963267949 1.5707963267949 NAN
[ 0 ] Comments