note 20548 added to language.types
| From: | rembert at floating-point dot nl | Date: | Sun, 07 Apr 2002 21:27:49 +0000 |
| Subject: | note 20548 added to language.types | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-28934@lists.php.net to get a copy of this message | ||
With PHP 4.1.2 I get lots of undefined variable messages in my phplog file. These don't harm
proper execution and can be easily removed with for instance
if (!isset($myvar)) $myvar = "";
But... as this error exists, wouldn't it be more convenient to have support for pre-declaration
of variables in PHP, similar to the support within classes, ie:
var $myvar;
--
http://www.php.net/manual/en/language.types.php
http://master.php.net/manage/user-notes.php?action=edit+20548
http://master.php.net/manage/user-notes.php?action=delete+20548
http://master.php.net/manage/user-notes.php?action=reject+20548