Php reference assignment is a concept introduced from php4.0. It is also a knowledge for php learners, because it is often used in object-oriented development. The concept of referencing a value assignment is to use different names to access the content of the same variable. When you change the value of one of the variables, the other also changes. Use the & amp; symbol to indicate reference.
Php reference assignment is a concept introduced from php4.0. It is also a knowledge for php learners, because it is often used in object-oriented development. The concept of referencing a value assignment is to use different names to access the content of the same variable. When you change the value of one of the variables, the other also changes. Use the & symbol to indicate the reference.
Example:
$ A = "php ";
$ B = @ $;
$ A = "hello php ";
Echo $;
Echo "";
Echo $ B;
?>
Hello php is output.
In addition, value assignment is often used in object-oriented development. When we call each other between functions, it is quite convenient and convenient.