Example Analysis of php value assignment and address assignment usage
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 |
<? Php $ 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.