Notice: Undefined variable: GLOBALS in E:\test.php on line 7

    1 <?php
    2 function foo() {
    3   $GLOBALS['foo'] = 'bar';
    4 }
    5
    6 function bar() {
    7   echo $GLOBALS['foo'];
    8 }
    9
   10 foo();
   11 bar();
   12 ?>

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/                 http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to