Php value assignment and address assignment usage example analysis. Php value assignment and address assignment usage example analysis this article describes php value assignment and address assignment usage. Share it with you for your reference. The details are as follows :? 1234567 php value assignment and address assignment usage example analysis
The example in this article describes how to assign values to input values and assign values to input addresses in php. Share it with you for your reference. The details are as follows:
?
1 2 3 4 5 6 7 8 9 10 11 12 |
$ Name = 'Simon '; // assign values to the variable $ name (assign values) $ Name_ B = $ name; // assign values to the variable $ name_ B (assign values) $ Addr = & $ name; // assign a value to the variable $ addr (transfer address assignment) $ Name = "Elaine"; // change the value of $ name Echo $ name; // Output $ name. The value of $ name is changed. Echo $ name_ B; // Output $ name_ B. The value of $ name_ B is not changed. Echo $ addr; // Output $ addr. The value of $ addr is changed. $ Addr = "Helen"; // change the value of $ addr. Echo $ name; // Output $ name. The value of $ name is changed. Echo $ addr; // Output $ addr. The value of $ addr is changed. ?> |
I hope this article will help you with php programming.
Examples in this article describes how to assign values by passing values in php and assign values by passing addresses. Share it with you for your reference. The details are as follows :? 1 2 3 4 5 6 7...