PHP Architect · Vol 25, Issue 3 · March 2026
Understanding References and Copies in PHP
I spent hours debugging a problem that came down to a single character. A function was modifying an array that should have been unchanged. I checked everything from the function logic, the calling code, to the data itself. Everything looked correct. Finally, I spotted an ampersand in the foreach loop from code I'd written months earlier and forgotten about - hours for one character.
The full article is in PHP Architect Vol 25, Issue 3. Subscribe to read it and every new issue.