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 ?
0
give a positive ratinggive a negative rating
10 Nov 2019 at 05:13 PM
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.
0
give a positive ratinggive a negative rating
10 Nov 2019 at 07:47 PM
Tim
Share on FacebookShare on TwitterShare on LinkedInSend email
x
x
2024 AnswerTabsTermsContact us