This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
uphp:functions:include [2017/04/12 09:54] jeff created |
uphp:functions:include [2018/04/14 09:09] jeff [Notes] Removed (needs revision) |
||
---|---|---|---|
Line 7: | Line 7: | ||
====Description==== | ====Description==== | ||
- | <well size=" | + | <well size=" |
- | < | + | <span style=" |
- | <span style=" | + | |
- | </ | + | |
- | [[include]] ( | + | |
- | < | + | |
<span style=" | <span style=" | ||
<span style=" | <span style=" | ||
<span style=" | <span style=" | ||
- | </ | + | </ |
- | </ | + | |
This function includes and evaluates the specified file. 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. If the include occurs inside a function within the calling file, then all of the code contained in the called file will behave as though it had been defined inside that function. So, it will follow the variable scope of that function. | This function includes and evaluates the specified file. 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. If the include occurs inside a function within the calling file, then all of the code contained in the called file will behave as though it had been defined inside that function. So, it will follow the variable scope of that function. | ||
Line 23: | Line 18: | ||
====Parameter==== | ====Parameter==== | ||
- | < | + | < |
- | ====Return | + | ====Return |
None | None | ||
====See Also==== | ====See Also==== | ||
- | |||
- | [[exec()]] - Run a script with an optional delay | ||
[[call_user_func()]] - Call a user defined function with optional parameters | [[call_user_func()]] - Call a user defined function with optional parameters | ||
+ | |||
+ | [[exec()]] - Run a script with an optional delay | ||
[[function_exists()]] - Check if a function exists (native or custom) | [[function_exists()]] - Check if a function exists (native or custom) |