I am writing a PHP mail function and some examples have @mail(…) and others have just mail(…).
What is the difference and which one is best to use?
Cheers
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
@supresses all warnings/errors, whichmail()function may throw.It is not good practice to use “@”, because you never know if something doesn’t work and also it hits the performance of you PHP application too!