What the "@" mean in php

Discussion in 'Programming/Scripts' started by kokez, Dec 23, 2005.

  1. kokez

    kokez New Member

    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
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     

Share This Page