2

Possible Duplicate:
What is the use of @ symbol in php?

I like to know the purpose and meaning of @ in php codes. For instance, @umask or @ini_set. What's the difference without @ and with @?

Community
  • 1
  • 1
lala
  • 29
  • 1
  • 2

3 Answers3

5

PHP's error suppress operator used to suppress error messages.

SideNote: Avoid it as much as you can, also it slows down performance heavily and not allowed to be used in ini_get and ini_set functions in future php versions.

Sarfraz
  • 377,238
  • 77
  • 533
  • 578
1

"Swallow an error", continue despite an error occuring. An non-critical operation augmented with @ will not abort script execution.

SF.
  • 13,549
  • 14
  • 71
  • 107
1

@ symbol is an error control operator check out manual here

Srinivas M.V.
  • 6,508
  • 5
  • 33
  • 49