Quick question, what is the difference between the following two declarations:
define('I_LIKE_AT_SIGNS', false);
and
@define('I_LIKE_AT_SIGNS', true);
I.e. what does the @-sign do?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
@symbol is PHP’s only error control operator, and when prepended to any expression, all errors associated with that expression are suppressed.In this case, any errors associated with your
defineexpression will be suppressed.Use of the
@error suppression technique generally isn’t encouraged or recommended. Instead, it’s much better to use other error capture techniques so you can detect and handle the error.