Click here to Skip to main content
15,900,906 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i was reading a php code and stumbled on the following
@$action
i didnt understand what it means
what does @ signify?
Posted

1 solution

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 answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900