Re: Passing $_REQUEST by reference - sensible thing to do?
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Thu, 02 Jul 2009 06:14:53 -0400
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
==================
.
- References:
- Re: Passing $_REQUEST by reference - sensible thing to do?
- From: news.freedom2surf.net
- Re: Passing $_REQUEST by reference - sensible thing to do?
- From: news.freedom2surf.net
- Re: Passing $_REQUEST by reference - sensible thing to do?
- Prev by Date: Re: Q: referencing same array
- Next by Date: Re: include() question
- Previous by thread: Re: Passing $_REQUEST by reference - sensible thing to do?
- Index(es):
Relevant Pages
|