vang163 Posted July 21, 2008 Share Posted July 21, 2008 hi, i've seen some coding online like below: eg. 1) $ip = @$REMOTE_ADDR; 2) @mysql_free_result(); what is the function/purpose of using this symbol '@' ? Link to comment https://forums.phpfreaks.com/topic/115770-questions-about-this-symbol/ Share on other sites More sharing options...
LooieENG Posted July 21, 2008 Share Posted July 21, 2008 I may be wrong, but I'm pretty sure it stops PHP outputting any errors. Link to comment https://forums.phpfreaks.com/topic/115770-questions-about-this-symbol/#findComment-595166 Share on other sites More sharing options...
unkwntech Posted July 21, 2008 Share Posted July 21, 2008 That is correct. When you call a function with a @ infront of it, php will not output any errors produced by that function. Link to comment https://forums.phpfreaks.com/topic/115770-questions-about-this-symbol/#findComment-595280 Share on other sites More sharing options...
xsist10 Posted July 21, 2008 Share Posted July 21, 2008 For more info check out http://www.php.net/@ Link to comment https://forums.phpfreaks.com/topic/115770-questions-about-this-symbol/#findComment-595287 Share on other sites More sharing options...
numan82 Posted July 21, 2008 Share Posted July 21, 2008 well to be more accurate it is exception handling in PHP, that can show friend messages in case of exceptional errors /fatal errors. thanks Link to comment https://forums.phpfreaks.com/topic/115770-questions-about-this-symbol/#findComment-595299 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.