Reply to RE: [PHP] Problem with array

Your name:

Reply:


Posted by Richard Lynch on 05/01/05 23:15

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация