Re: Constants
| From: | Jakes | Date: | Tue, 23 Mar 2004 14:58:38 +0000 |
| Subject: | Re: Constants | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-181269@lists.php.net to get a copy of this message | ||
Thanks, will do.
"Red Wingate" <redeye@erisx.de> wrote in message
news:200403231518.54361.redeye@erisx.de...
Give this a read:
http://marc.theaimsgroup.com/?l=php-dev&m=107936530102181&w=2
Am Dienstag, 23. März 2004 15:16 schrieb Red Wingate:
> 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