$array = Array('a'=>1);
function scope_test()
{
global $array;
echo $array['a'];
}
Works for me, PHP 4.1.1 with the new .ini file.
--
Julio Nobrega.
Um dia eu chego l�:
http://sourceforge.net/projects/toca
Ajudei? Salvei? Que tal um presentinho?
http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884
"Wee Chua" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
> How can I declare a global array? Can I do this:
> $global myArray[]
>
> would I find out it is an array when I use it in other places?
>
> Thanks,
> Wee
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php