Reply to Re: [PHP] How can I track the value in php

Your name:

Reply:


Posted by comex on 11/06/05 01:41

> in my index page, I firstly inlcude_once a A.php file, where i defined an
> array, secondly I include another .php file named B.php, where I want to use
> the array, I have claimed it as global type, but it seems I can't retrieve
> any value from the array.

When you include a PHP file, it will be executed in the current
context (AFAIK). If you're not including it from a function, then it
should be global automatically. The global keyword makes variables in
functions global.

Maybe this is obvious, but are you sure you have <?php in the B.php?

What does var_dump($xxx); say, if $xxx is the array name?

[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

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