PHP help
PHP help
Out of context: Reply #13
- Started
- Last post
- 27 Responses
- UndoUndo0
once a file has been included the code in the included file is just like hving it in the original file, scope is also the same. you don't need to pass variables to it. if you have a function inside the included file and you want to pass a var to it. do it with myfunction($var); and have it return something
just make sure you call the function after the file has been included!