Can we pass the parameters we need into the function instead of using a global?
Chris
On Thursday 29 June 2006 2:29 am, Jonathan Ernst wrote:
Changelog:
- $aClean was not visible in function
Le jeudi 29 juin 2006 à 12:19 -0400, Chris Morgan a écrit :
Can we pass the parameters we need into the function instead of using a global?
I don't think it is better. If we just pass it it'll make a copy of the array. We could also use &$aClean but I don't see why it would be better too.
Yeah, lets pass the parameters into this function so we can move it around and reuse it without needing a global.
Chris
On Friday 30 June 2006 7:24 am, Jonathan Ernst wrote:
Le jeudi 29 juin 2006 à 12:19 -0400, Chris Morgan a écrit :
Can we pass the parameters we need into the function instead of using a global?
I don't think it is better. If we just pass it it'll make a copy of the array. We could also use &$aClean but I don't see why it would be better too.