Re: Re: isset
| From: | Bret Hughes | Date: | Wed, 16 Feb 2005 17:26:17 +0000 |
| Subject: | Re: Re: isset | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-208848@lists.php.net to get a copy of this message | ||
On Wed, 2005-02-16 at 10:34, Richard Lynch wrote:
> Bret Hughes wrote:
> > On Wed, 2005-02-16 at 07:54, Matthew Weier O'Phinney wrote:
> >> * Bret Hughes <bhughes@elevating.com>:
> >> > I just wish there was a use strict; sort of deal so I would not have
> >> to
> >> > hunt down logic errors due to mistyping a variable name.
> You SHOULD be using E_NOTICE to get warned when you *USE* an unassigned
> variable/propery/element and PHP is forced to initialize it.
>
> That will catch a bunch of your variable name typos -- And also will often
> let you know you typed it wrong in the place where you did the assignment.
> EG:
this is exactly what I was looking for Richard thanks.
Bret