Re: @ Scope
| From: | Christian Reiniger | Date: | Wed, 14 Feb 2001 18:38:56 +0000 |
| Subject: | Re: @ Scope | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-39709@lists.php.net to get a copy of this message | ||
On Wednesday 14 February 2001 17:36, Karl J. Stubsjoen wrote:
> 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);
>
> }
Huh?
When you call CloseODBC (), the code in that function is executed - and
there odbc_close() is called with the "@" - so it doesn't report an error.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Even idiots can handle computers, and many do.