the "@" will silence any php errors your function could raise.
It silences errors and warnings. See Error Control Operators.
As already answered the @
will stop the error (if any) from showing up.
In terms of performance this is not recommended.
What php is doing is:
If you don't want any errors showing up use error_reporting(0);
.
Or just write bug free code :P
http://www.faqts.com/knowledge_base/view.phtml/aid/18068/fid/38
All PHP expressions can be called with the "@" prefix, which turns off error reporting for that particular expression.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With