Re: this may be a daft question but.....defining indexes
| From: | Tjoekbezoer van Damme | Date: | Mon, 19 Sep 2005 21:41:17 +0000 |
| Subject: | Re: this may be a daft question but.....defining indexes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-222698@lists.php.net to get a copy of this message | ||
> This may be a daft question but I keep getting notices on undefined indexes
>
> Is there a way to define them prior to use similar to..
>
> $global $myvariable;
>
> Can you show me examples of how to do this with cookies/arrays?
$array = array( );
and with a class you can use
class Test {
var $variable1;
var $variable2;
}
Hope this helps
Tjoek