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
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.
Share on FacebookShare on TwitterShare on LinkedInSend email
1 answer
x
x
2024 AnswerTabsTermsContact us