Go to the source code of this file.
Functions | |
| main () | |
| This function outputs various values of variables to demonstrate usage of variables, arrays, scope of variables in PHP. | |
Variables | |
| $global1 = 'This is global' | |
| This variable is declared just to demonstrate that global variables can be accessed in function by declaring them as global. | |
| $global2 = 'This is global too' | |
| This variable is declared to show that we cannot use global variables unless they are declared using global keyword. | |
Definition in file index.php.
| main | ( | ) |
| $global1 = 'This is global' |
| $global2 = 'This is global too' |
1.4.7