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 ?
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.
1 answer