<?php
echo atan2(17,17);
?>
Output
0.78539816339745
<?php
echo atan2(17,17);
?>
Output
0.78539816339745
Example
<?php
echo asinh(.90);
?>
Output
0.80886693565278
Example
<?php
echo asin(.90);
?>
Output
1.1197695149986
Example
<?php
echo acosh(90);
?>
Output
5.1929259852637
Example
<?php
echo acos(.90);
?>
Output
0.45102681179626
Example
<?php
echo $abs = abs(-1.7);
?>
Output
1.7
<?php
$val=2;
if ($val>1)user_error(“A custom error has been triggered”);
?>
Example
<?php
$val=2;
if ($val>1)trigger_error(“A custom error has been triggered”);
?>
Example
<?php
function customException($exception){
echo $exception->getMessage();
}
set_exception_handler(‘customException’);
throw new Exception(‘Uncaught Exception occurred’);
?>
Output
Exception: Uncaught Exception occurred
Example
<?php
function errorFunc($errno, $errstr, $errfile, $errline) {
echo $errstr.” on ” . $errfile .” at “. $errline;
}
set_error_handler(“errorFunc”);
$val=5;
if ($test>1) trigger_error(“An error occured”);
?>
Output
Undefined variable: test on /var/www/test/index.php at 7