- trigger_error: documentation ( source)
<?php
$msg = 'This is the test message for echo';
@err();
echo $msg; // This line does not appear...
function err()
{
trigger_error('Error message', E_USER_WARNING); // Script stopped after this line...
}