Jump to content

global declaration


lucerias

Recommended Posts

May i know when to use global, when to use var? If let say i require x.php file into y.php file by using require syntax, and want to use the variable in the x.php file, do i have to declare again in y.php file or i can directly make use of it and then value can be passed from x.php to y.php? Thank you
Link to comment
https://forums.phpfreaks.com/topic/26784-global-declaration/
Share on other sites

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.