<[EMAIL PROTECTED]>
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;



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

Reply via email to