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
  • 18,283
  • 17
  • 74
  • 116

4 Answers4

4

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

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

Suppress error reporting

jldupont
  • 93,734
  • 56
  • 203
  • 318
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
  • 377,238
  • 77
  • 533
  • 578
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
  • 55,990
  • 32
  • 132
  • 223