| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2000-07-17 06:42 UTC] stas at cvs dot php dot net
  [2000-08-08 23:03 UTC] waldschrott@php.net
  [2002-02-19 05:23 UTC] hvalette at free dot fr
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 13:00:02 2025 UTC | 
When I define variable within included part of code than my variable is not visible in fuctions within included part. Example: . . . require(foo.php) . . . [foo.php] . . . $variable="something"; . . . here is variable visible . . function Foo(){ global $variable; . . here is variable not visible for some strange reasons. . . } please check this situation.