I'm don't understand what mean @
symbol before php function for example: @mysql_query()
, if someone know please explain for me.
Asked
Active
Viewed 1.5k times
3 Answers
28
It's the error suppression operator, normally not a good idea to use it as you should be trapping errors cleanly rather than simply hiding them

Mark Baker
- 209,507
- 32
- 346
- 385
7
It will silent error messages. See http://php.net/manual/en/language.operators.errorcontrol.php

mbinette
- 5,094
- 3
- 24
- 32
3
It means that if an error is generated by that function, it is not shown. It suppresses the error so to say. As the PHP manual states:
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.
Look here for more information: http://php.net/manual/en/language.operators.errorcontrol.php

ranieuwe
- 2,268
- 1
- 24
- 30