Re: this may be a daft question but.....defining indexes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux