Re: Coding Practice: Use global $var or pass in by refernce

From: Date: Fri, 03 Mar 2006 21:19:18 +0000
Subject: Re: Coding Practice: Use global $var or pass in by refernce
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-231420@lists.php.net to get a copy of this message
So what's the way [using Globals] you'd recommend and why? best regards Andreas
Andreas: I have to agree with Gustav on this -- I very seldom use Globals. I might use one for debugging, but not for finished code. Their use simply creates problems in porting code, keeping things modular, and maintenance. Perhaps I'm fortunate, but I usually find a way around using Globals. And since I've been coding in PHP, I've never been forced to use them. tedd -- -------------------------------------------------------------------------------- http://sperling.com

« previous php.general (#231420) next »