Home  |  Linux  | Mysql  | PHP  | XML
From:Greg Beaver Date:Thu Jul  2 20:27:48 2009
Subject:Re: namespace keyword
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
Navigate in group php.general at sever news.php.net
Previous Next


Your recent visits
LMPX.COM :: Linux, Mysql, Php, Xml
Re: doesn't work creating binaries for older systems?
Re: [PHP-WIN] Re: [PHP-WEBMASTER] PHP Update & PHP Upgrade
Re: [PHP] Dom PDF Problem


  
© No Copyright
You are free to use Anything
Site Maintained by Zareef Ahmed
Powered By PHP Consultants