FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

PHP syntax

 


asiddle423
can anybody tell me what the @ sign is for use in php

i have seen this a few times for certain bits of scripts but don't understand what it is for as the code will work with out it.

e.g. @mail($to, $subject, $message);
Stubru Freak
asiddle423 wrote:
can anybody tell me what the @ sign is for use in php

i have seen this a few times for certain bits of scripts but don't understand what it is for as the code will work with out it.

e.g. @mail($to, $subject, $message);


It's to ignore error messages.

http://www.php.net/manual/en/language.operators.errorcontrol.php
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.