faqts : Computers : Programming : Languages : PHP : Common Problems : Errors

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

172 of 184 people (93%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

How can I suppress PHP error messages for a single line of code?
What is the @ operator used for?
How can I hide PHP warning messages?

Jun 30th, 1999 21:23
Nathan Wallace,


Use the '@' symbol before the function name to suppress error messages
and warnings.  For example:

    $error = @ ldap_bind($ldap,$binddn,$pass);

http://www.php.net/manual/feature-error-handling.php3