Re: namespace keyword

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Martin Scotta wrote:
> Hil all
> 
> I'm a 5.2.0 user (WINXP)
> I have a class like this...
> 
> Class IsThisBad
> {
>    const NAMESPACE = 'something';
>    /* code */
>    function __construct( $other=self::NAMESPACE )
>    {
>      /* do stuff */
>    }
> }
> 
> Recently the version 5.3 was released, so... should I change the const
> "NAMESPACE" in the class? Is it a reserved word?

Yes.

Greg

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux