"@" before method [duplicate]

1

I'm running some tests with the function ldap_bind() and I came across something I do not know and did not find in search.

Considering the script line:

$bind = ldap_bind($ldap_conn, $auth_user.$domain, $auth_pass) or die("Erro em bind");

If my authentication fails, it will be printed:

  Warning: ldap_bind (): Unable to bind to server: Invalid credentials in   C: \ xxx \ ldap.php on line 17   Error in bind

But if I use an "@" before method:

$bind = @ldap_bind($ldap_conn, $auth_user.$domain, $auth_pass) or die("Erro em bind");

It does not print warning :

  

Error in bind

I would like to know the usefulness of this "@" , if it would just not print out returns, etc!?

    
asked by anonymous 26.07.2018 / 21:02

0 answers