PHP OOP Question

From: Date: Wed, 08 Sep 2004 08:48:36 +0000
Subject: PHP OOP Question
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-196107@lists.php.net to get a copy of this message
> Is it bad practice for a class to have a variable and method of the same name? Well, it's a matter of opinion what is and isn't bad practice, but personally I would never give a variable and a function the same name - if only to avoid confusion (PHP shouldn't mind if you do so though). Paul

« previous php.general (#196107) next »