Welcome Guest, Not a member yet? Register   Sign In
include with variable (solved)
#2

When a file is included, the code it contains inherits the variable scope of the line on which the include occurs.
Any variables available at that line in the calling file will be available within the called file, from that point forward.
However, all functions and classes defined in the included file have the global scope.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
include with variable (solved) - by neoneeco - 02-12-2021, 10:26 AM
RE: include with variable - by InsiteFX - 02-12-2021, 12:13 PM
RE: include with variable - by neoneeco - 02-12-2021, 01:35 PM
RE: include with variable - by waleed - 02-12-2021, 08:37 PM
RE: include with variable - by nfaiz - 02-13-2021, 12:03 AM
RE: include with variable - by ikesela - 02-13-2021, 11:18 AM
RE: include with variable - by neoneeco - 02-18-2021, 02:41 AM
RE: include with variable - by paulbalandan - 02-18-2021, 09:34 AM
RE: include with variable - by neoneeco - 02-18-2021, 02:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB