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 ?
10 Nov 2019 at 05:13 PM
0pnshow more
onefiveonefive
Hi,

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.
10 Nov 2019 at 07:47 PM
0pnshow more
TimTim
Share on FacebookShare on TwitterShare on LinkedInSend email
Follow us on Facebook & Twitter
2021 AnswerTabsTermsContact us