Normally, PHP passes a copy of a variable into a function (pass by value), so modifying it inside the function doesn't affect the original variable. Prefixing a parameter with & passes a direct reference to the original variable instead.
ADVERTISEMENT