Are they available application wide e.g: if they are created on
index.php are they values available in file.php
Is the value of the global variable same for each user. Say I have
one user doing something and his global variable value is 1. Will
the second user who visits the same page his value also be 1?
edited:
Taking the advice from here: I have decided to use value by reference
Result I need to achieve is:
New session should have the same results and $name variable in any other file not included should not be associated with this variable.
name: initial vj name: vj name: vj name in file2: vj
[list] [*]Are they available application wide e.g: if they are created on index.php are they values available in file.php [*]Is the value of the global variable same for each user. Say I have one user doing something and his global variable value is 1. Will the second user who visits the same page his value also be 1? edited: [*]Taking the advice from here: I have decided to use [b]value by reference[/b] [*][b]Result I need to achieve is:[/b] [*]New session should have the same results and $name variable in any other file not included should not be associated with this variable. [/list]
name: initial vj name: vj name: vj name in file2: vj