Re: how to make a global scope array
| From: | Comex | Date: | Fri, 25 Jul 2003 22:51:13 +0000 |
| Subject: | Re: how to make a global scope array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-156955@lists.php.net to get a copy of this message | ||
<20030725224852.1123.qmail@pb1.pair.com>
Jack Lee:
> //I have an array a[] like this:
>
> <?php
> $a[]=0;
>
> //How to define and use it in a function like this?
>
> function myfunc(something)
> {
> echo $a[0]; //got error here!!!! Notice: Undefined variable:
>
> }
>
>>
> //Thanks for any help.!!!
global $a;