1
ChadK
What is the @ used for in PHP?
  • 2004/8/19 15:36

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


What is the use of the @ symbol in function calls like: @header or @mysql_connect... ?
What does that @ do?


2
Dave_L
Re: What is the @ used for in PHP?
  • 2004/8/19 15:41

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


From the PHP Manual (Error Control Operators):

Quote:
PHP supports one error control operator: the at sign (@). When prepended to an expression in PHP, any error messages that might be generated by that expression will be ignored.



3
ChadK
Re: What is the @ used for in PHP?
  • 2004/8/20 14:54

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


AH, thank you.. I tried searching the php manual but of course.. searching for "@" wasn't helpful. ;)

Login

Who's Online

331 user(s) are online (59 user(s) are browsing Support Forums)


Members: 0


Guests: 331


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits