Re: Passing $_REQUEST by reference - sensible thing to do?



news.freedom2surf.net wrote:
Actualy sayiung that going back to Jerry's original response he says I should not pass be refeernce so actually you guys are in agreement at the base level. I think you were disagreeing on some of the more detailed details. But in a nutshell I should not pass by reference and leave that to PHP to sort.


Yes, do it because you need to do it. There are other reasons NOT to pass by reference - for instance, if you do, you can't change the variable without changing the original value. Passing by reference creates a tighter binding between the function and the caller.

Performance should NEVER be a consideration until you have a performance problem. Writing clean, maintainable code should always be most important.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.



Relevant Pages