What does @ add to the function? I saw this in some scenarios
Example:
$connect = @mysql_connect('localhost', 'root', 'password'); instead of $connect = mysql_connect('localhost', 'root', 'password');
It suppresses any errors that may occur inside the function. The documentation is here .
All of the above, this is not recommended, as this can lead to some vile errors.
This is the Error Control Operator , from the php documentation:
PHP supports one error control statement: the at ( @) sign . When added to an expression in PHP, any error messages that may be generated by this expression will be ignored .set_error_handler(), , ( ) error_reporting(), 0, , @.track_errors , , , $php_errormsg. , , .
PHP supports one error control statement: the at ( @) sign . When added to an expression in PHP, any error messages that may be generated by this expression will be ignored .
@
set_error_handler(), , ( ) error_reporting(), 0, , @.
set_error_handler()
error_reporting()
track_errors , , , $php_errormsg. , , .
$php_errormsg
Source: https://habr.com/ru/post/1712353/More articles:Porting an odd subversion layout to git with history - gitIs there a way to enable the VM option inside .jar? - javaGWT on GAE and S3 - javaПеречислять вкладки браузера из внешнего приложения - browserhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1712352/do-i-need-to-set-these-variables-to-nil-in-viewdidload-as-i-have-in-this-code&usg=ALkJrhgQVFf3Ce33SRtwrl4KEqiW8_nX4AXML serialization (.NET) node user names - xmlHow to keep div focus when mouse enters node child - javascriptTokenizing Strings - vba"Sliding window" - is it possible to add reliability to the protocol and avoid flow control? - cDownloading your own DLL as a debugging module in C # managed code for Windows CE - c ++All Articles