PDA

View Full Version : What the "@" mean in php


kokez
23rd December 2005, 16:34
After some research, am not be able to find a response to the question, in the php online documentation.
Can someone explain me what signify the "@" character prepended in some function names?
Or, could someone point me at some documentation?

LC

till
23rd December 2005, 16:40
The @ surpresses warning and error messages.

For example, if you run the command is_file("myfile.txt") nad myfile.txt does not exist, you get a warning message. If you run @is_file("myfile.txt") you wont get this warning message.