$from = 'no-reply@'.htmlspecialchars($_SERVER['HTTP_HOST'], ENT_COMPAT, 'UTF-8');
Especially what's ENT_COMPAT
for?
Anyone knows?
$from = 'no-reply@'.htmlspecialchars($_SERVER['HTTP_HOST'], ENT_COMPAT, 'UTF-8');
Especially what's ENT_COMPAT
for?
Anyone knows?
forming a email address, quite stupid way
For the answer to the question Especially what's ENT_COMPAT for?
you can browse PHP documentation for the htmlspecialchars, because it's this function's parameter