So if I have a variable in a php file I just made , if I put it in the same folder as other php files and include it into one of them , I can use any variable from that file right?
Sorry if it’s a bit of noobish
So if I have a variable in a php file I just made ,
Share
Basically yea. Running the
includeis equivalent to pasting the code.Specifically, from the PHP manual:
In general the PHP manuals are pretty much self explained. You will find there most answers for basic questions as this one.