Re: Constants

From: Date: Tue, 23 Mar 2004 14:16:25 +0000
Subject: Re: Constants
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-181264@lists.php.net to get a copy of this message
IIRC it was changed to self::CONST_NAME recently interface Settings { const UNAME = "somename"; const PWORD = "password"; const SERVER = "localhost"; } class Conn implements Settings { public function __construct(){ $dbConn = mysql_connect(self::SERVER, self::UNAME, self::PWORD); } } -- red

« previous php.general (#181264) next »