Re: nested, referenced foreach & implicit current array pointer issues

From: Date: Wed, 31 Jan 2007 19:53:03 +0000
Subject: Re: nested, referenced foreach & implicit current array pointer issues
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-248097@lists.php.net to get a copy of this message
# jochem@iamjochem.com / 2007-01-31 19:41:42 +0100: > instead I would suggest that your better off doing one of 2 things: > > 1. pass in the array to the function explicitly. > 2. use a special function that can be called to retrieve the array > from within your example function. > > bad advice? I'm open to being corrected :-) 2. is only marginally better than "global". -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991

« previous php.general (#248097) next »