Home > Article > Backend Development > PHP programming technology: a brief introduction to the at(@) symbol_PHP tutorial
Bangkejia (www.Bkjia.com) News The following is an introduction to its usage.
|
If the connection to the database is unsuccessful, the preceding "@" can suppress the error display, that is, the error will not be displayed, and then an exception will be thrown and the exception handling defined by you will be displayed. This is added just for browsing If the reader does not see it, the unfriendly page cannot suppress the error, it can only suppress the display of the error! @ Use it where you think there may be errors in future operations. There should be a space after @! It's best to use less, as it seems to increase system overhead.