Using the @ operator followed by a PHP function's name mutes any sort of output. Is there any way to do this to user-created functions?
AFAIK, using @ will not mute any output, it will only prevent errors derived from that function from showing.
Oops, sorry. That's what I meant: any error output.
You can disable error reporting by adding
error_reporting(0);
on the start of your scripts.
Mind you this is a bad choice, because if you get errors, you will not be able to see them.
What I'm asking is if I can add this error-muting sort of function to my functions by simply adding the @ in front of the name.
@allocate_some_more_foo(); If you it like that only fatal errors are shown others are not.