It will escape the error ... or better say you force the function to always
return true.

Very useful if you don't really care whether you succeed or not. 

Like during user tracking, you don't want to exit the script only because
something went wrong while you were curious where did he come from, am I
right ?

so you use :

$where = @where($user);

this will always return true no matter what happen

Cheers,
Maxim Maletsky



-----Original Message-----
From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 15, 2001 1:37 AM
To: PHP Mailing List
Subject: [PHP] @ Scope


When you @ "at" a command (supress error messaging) within a function, is
the scope of the @ within the function?

Example:


CloseODBC(1);

# is error message supressed here too?


function CloseODBC($connection_id)
{
    # error messaging supressed
    @odbc_close($connection_id);

}


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to