Feb 14, 2017
0
Level 6
Php includes and namespace and use statements
Hello, let's say I have a script A with its own namespace and use statements on top. Now in the middle of it, I include a script B with its own namespace and uses statements.
it works fine, yet PHP doesn't like to have includes and uses statements that are not on top of the script, which should be the case on the location of the included script. Behind the scene how does php treat such included scripts ?
Please or to participate in this conversation.