You are here: Re: global array? « PHP Language « IT news, forums, messages
Re: global array?

Posted by Stefan Rybacki on 06/30/05 19:13

roN @ work wrote:
> Hi,
>
> I got an array and want to define it global, now I get the Warning:
> Warning: array_push(): First argument should be an array in
> /srv/www/htdocs/web2/html/php/nospam/pop.php on line 53
> and I already placed global $Array in my function. So what to do? Thank you!
>
>
global $array means that you import a global called $array to a local
function.

globals are defined outside of any function.

Regards
Stefan

 

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

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