trigger_error

It can be used to create a custom error message .

Example

<?php
$val=2;
if ($val>1)trigger_error(“A custom error has been triggered”);
?>

Share