Is this an okay practice or an acceptable way to use PHP\'s error suppressing?
if (isset($_REQUEST[\'id\']) && $_REQUEST[\'id\'] == 6) {
echo \'hi\
No, it's not really an acceptable practice in my opinion. Apart from the fact that it looks sloppy, custom error handlers are still triggered even when using error suppression.
The manual offers more reasons to avoid its use altogether:
Currently the "@" error-control operator prefix will even disable error reporting for critical errors that will terminate script execution. Among other things, this means that if you use "@" to suppress errors from a certain function and either it isn't available or has been mistyped, the script will die right there with no indication as to why.