Jump to content

grabbing a variable from a parent parent file?


freelance84

Recommended Posts

 

Not sure what to search in google here or php manual....

 

 

A variable ($foobar) is set in "fileA.php"

 

FileA includes_once 'FileB.php' which in turn may or may not include_once 'FileC.php' or include_once 'FileD.php.'

 

(

fileA

    |_fileB

              |_fileC

              |_fileD

)

 

My question is, is $foobar going to accessible to all no matter how far down, or is there a limit?

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.