.


Divya

acos() Function in PHP with Example


The php asin() function returns the arc sine of a number.

It returns NAN if number is not in the range -1 to 1.

always returns float number.

Example

<!DOCTYPE html>
<html>
<body>
<?php
echo(asin(1.66) . "<br>");
echo(asin(0.66) . "<br>");
echo(asin(-0.78) . "<br>");
echo(asin(0) . "<br>");
echo(asin(-1) . "<br>");
echo(asin(1) . "<br>");
echo(asin(2));
?>
</body>
</html>


.