What does @ mean before PHP function ? PHP mail vs. @mail

What is the difference between standard PHP functions and the functions starting with @ ? For example in case of mail() and @mail() functions ? What does @ do in PHP ?
posted on 10.11.2019 at 17:13
0pnshow more

The symbol @ before PHP function will disable error reporting. It suppresses error notifications. So if an error occurres in case of @email() function, there should be no notification displayed. The presence of @ will even disable error reporting for errors that will terminate the script.
posted on 10.11.2019 at 19:47
0pnshow more
share on facebookshare on twitter
2020 AnswerTabsTermsContact us
This site uses cookies to improve your experience, for analytics and ads. By continuing to browse this site you agree to our use of cookies.