RE: Problem with array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, May 1, 2005 1:08 pm, Murray @ PlanetThoughtful said:
> Color me confused. I removed "global $arrtree;" and added "$arrtree =
> array();" to the function buildProjectTree() and now the parent function
> (listProjectChildren) returns no values at all.
>
> I've checked the page from which listProjectChildren() is being called,
> and
> $arrtree does not appear as a variable in it at all, so it seems "global
> $arrtree;" was doing SOMETHING, but at this point I have no idea what.
>
> Still trying to work this out, if anyone else has any suggestions?

I'm not real clear on what you are trying to do in the first place, but if
taking out the global messed up, put it back :-)

Maybe add another global $arrtree in the other function so *BOTH*
functions are using the same $arrtree?



-- 
Like Music?
http://l-i-e.com/artists.htm

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux