&variablename PHP -


possible duplicate:
reference - symbol mean in php?

can explain experssion

&variablename in php.

i have seen around @ many places not able figure out statement do.

thanks in advance

j

php reference. references in php means access same variable content different names. there 3 operations performed using references: assigning reference, passing reference, , returning reference.

php reference

for example:

$example1 =  'something'; $example2 =& $example1; echo("example 1: $example1 | example 2: $example2\n"); //example 1: | example 2: $example1 = 'nothing'; //change example 1 nothing echo("example 1: $example1 | example 2: $example2"); //example 1: nothing | example 2: nothing 

Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -