Creates a user-defined error message in PHP
Description
The following code shows how to creates a user-defined error message.
Example
/*from w w w . j a v a2s . c om*/
<?php
$test=2;
if ($test>1){
trigger_error("A custom error has been triggered");
}
?>
The code above generates the following result.