RE: [PHP] use strict alternative
| From: | Johnson, Kirk | Date: | Mon, 19 Mar 2001 15:50:34 +0000 |
| Subject: | RE: [PHP] use strict alternative | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-44572@lists.php.net to get a copy of this message | ||
I think there is an error_level you can set that will warn about using
*undefined* variables before they have been assigned a value. Don't recall
the details offhand.
Kirk
> -----Original Message-----
> From: Christian Reiniger [mailto:creinig@mayn.de]
> Sent: Monday, March 19, 2001 5:37 AM
> To: 'php-general@lists.php.net'
> Subject: Re: [PHP] use strict alternative
> "use strict" forces you to declare variables before you use
> them. AFAIK
> there's no such thing in PHP (unfortunately).