I am using the following static method for sending mail alerts, but its throwing an error: warning:division by zero
...
Postman::MailAlert($_POST['email'],'Hello '.$_POST['name'].', Thanks for signing up.Your customer id is '.$_POST['city']/'/'.$product_id.'.');
I have solved this issue by putting @, but why is this issue raised, and what am I doing wrong?
Currently the "@" error-control operator prefix will even disable error reporting for critical errors that will terminate script execution. Among other things, this means that if you use "@" to suppress errors from a certain function and either it isn't available or has been mistyped, the script will die right there with no indication as to why.
So it doesn't solve issue, it makes that issue ignored. – Wh1T3h4Ck5