The meaning of & in php
Different names access the same variable content, that is, two variables point to the same content. When one of the variables changes, the contents of the memory are changed, and the value of the other variable is also changed, similar to the pointer in C.
PHP official introduction
PHP supports reference assignment, using the "$var = &$othervar;" syntax. Assignment by reference means that both variables point to the same data, nothing is copied.
PHP Tutorial"
The above is the detailed content of The meaning of & in php. For more information, please follow other related articles on the PHP Chinese website!