twitter
    Find out what I'm doing, Follow Me :)
If you have any question, suggestion or article topic for me to write, feel free to contact me through my shout box. ;) Some time I need an idea to write. hehe Hopefully I can help you and share my expertise.

What does @ symbol mean in PHP code?

Adding the "@" symbol in front of any function call will suppress any PHP-generated error messages from that function call. That means that if that function generates a non-fatal error (warning) it will not display the warning message in your HTML, rather just return false and let the program cope with it.

an example

$contents = @file_get_contents($file_source);


more info http://www.php.net/manual/en/language.operators.errorcontrol.php

0 comments:

Post a Comment