User Tools

Site Tools


uphp:functions:include

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
uphp:functions:include [2017/04/12 11:42]
jeff
uphp:functions:include [2018/04/14 09:09]
jeff [Notes] Removed (needs revision)
Line 7: Line 7:
 ====Description==== ====Description====
  
-<well size="sm"> +<well size="sm"><html> 
-<html> +<span style="font-size:125%">include (
-<span style="font-size:125%"> +
-</html> +
-[[include]] ( +
-<html>+
 <span style="color:green">string <span style="color:green">string
 <span style="color:blue">$filename <span style="color:blue">$filename
 <span style="color:black">) <span style="color:black">)
-</html> +</html></well>
-</well>+
  
 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 25: Line 20:
 <html><b><span style="color:blue">$filename<span style="color:black"></b>:  <b><span style="color:green">String<span style="color:black"></b> containing the path and filename of the script to include and evaluate</html> <html><b><span style="color:blue">$filename<span style="color:black"></b>:  <b><span style="color:green">String<span style="color:black"></b> containing the path and filename of the script to include and evaluate</html>
  
-====Return Value====+====Return Values====
  
 None None
uphp/functions/include.txt · Last modified: 2021/09/13 05:57 (external edit)