1

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

Hello all, an easy one for you,

what does the @ sign mean when placed before a php function call?

Thanks!

Community
  • 1
  • 1
Dori
  • 17,962
  • 16
  • 70
  • 113

4 Answers4

4

it means it won't print out any error in that function, if one occurs.

Jasper De Bruijn
  • 1,424
  • 7
  • 11
3

Suppress error reporting

jldupont
  • 88,026
  • 55
  • 193
  • 310
2

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

SideNote: Avoid it as much as you can, also it slows down performance heavily :)

Sarfraz
  • 367,681
  • 72
  • 526
  • 573
2

It's PHP's error control operator. In short, errors generated by an expression prepended with the symbol will be ignored.

From the manual: http://php.net/manual/en/language.operators.errorcontrol.php

typeoneerror
  • 54,020
  • 32
  • 129
  • 217