PHP 8.5.0 RC 1 available for testing

Voting

: two plus seven?
(Example: nine)

The Note You're Voting On

karst dot REMOVETHIS at onlinq dot nl
10 years ago
While you should definitely not be too liberal with the @ operator, I also disagree with people who claim it's the ultimate sin.

For example, a very reasonable use is to suppress the notice-level error generated by parse_ini_file() if you know the .ini file may be missing.
In my case getting the FALSE return value was enough to handle that situation, but I didn't want notice errors being output by my API.

TL;DR: Use it, but only if you know what you're suppressing and why.

<< Back to user notes page

To Top