hello!! I have a question about variables scope!! <?php $var = 10; function func1() { func2(); } function func2() { echo $var; } func1(); ?> In the above segment, I know that, func2 won't echo anything, even I add "global var;" in func2. if, I modified the segment, so, that, it like the following!! <?php $var = 10; function func1() { global var; func2(); } function func2() { global var; echo $var; } func1(); ?> It works!! However, I am now doing a project, using PHP, I decide to write some modules, for frequestly used. How ever, these module, have to use some variables, whose scope is originally on only the upper most level. If using these way (global all var in each function, even not the modules functions), it is very inconivent, as I need to know which variable, should 'global' it, if I use some module functions, Is there any convient way to do so??? Zenith -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]