PHP OOP Question

From: Date: Tue, 07 Sep 2004 23:50:27 +0000
Subject: PHP OOP Question
Groups: php.general 
Request: Send a blank email to php-general+get-196087@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? For example: class product { var $Name; function Name() { return stripslashes($this->Name); } } Thanks, -Ed ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.

« previous php.general (#196087) next »