You are here: Re: [PHP] this may be a daft question but.....defining indexes « PHP « IT news, forums, messages
Re: [PHP] this may be a daft question but.....defining indexes

Posted by Tjoekbezoer van Damme on 09/20/05 00:41

> 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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация