RE: [PHP] @ Scope

From: Date: Fri, 16 Feb 2001 03:19:40 +0000
Subject: RE: [PHP] @ Scope
Groups: php.general 
Request: Send a blank email to php-general+get-40079@lists.php.net to get a copy of this message
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:karlflips@kstub.com] 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: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#40079) next »