TechForums - Computer and Technical Discussions

Full Version: The Truth About PHP Variables
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This article examines how PHP handles passing of variables internally, as well as how this relates to memory usage. This information is can be very useful for any professional PHP developer as it shows how passing variables by reference will normally result in more (not less) memory being used.

Posted at http://www.goodphptutorials.com/out/The_..._Variables
A method I use to save memory is to just replace the data in my current variables instead of creating something new for every line of SQL or text that I use. It has made the server load much easier to bare.
Reference URL's