The example in this article describes the usage of PHP passing parameters by reference. Share it with everyone for your reference, the details are as follows:
First look at an example in the manual:
Output:
This is a string, and something extra.
If there is no ampersand,
Output:
This is a string,