faqts : Computers : Programming : Languages : PHP : kms : General

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

173 of 185 people (94%) answered Yes
Recently 8 of 10 people (80%) 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