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]
|