Re: Correct Coding
| From: | Robert Cummings | Date: | Thu, 07 Aug 2003 17:39:40 +0000 |
| Subject: | Re: Correct Coding | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-158695@lists.php.net to get a copy of this message | ||
You can -- but correct me if I'm wrong -- won't that possibly cause an
exception to fire which could be extremely heavy if a custom exception
handler is implemented?
Cheers,
Rob.
On Thu, 2003-08-07 at 13:35, skate wrote:
>
>
> > That can generate an error if $Task was never assigned a value.
> >
>
> could you not do
>
> if(@$Task == "Add" ){do something }
>
> to suppress the error of the variable not being set?
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
.---------------------------------------------.
| Worlds of Carnage - http://www.wocmud.org |
:---------------------------------------------:
| Come visit a world of myth and legend where |
| fantastical creatures come to life and the |
| stuff of nightmares grasp for your soul. |
`---------------------------------------------'