Home  |  Linux  | Mysql  | PHP  | XML
From:Greg Beaver Date:Thu Jul  2 16: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: How to add a last-modified field to a page header ???? ....
Cryptic error from PB11.2 MS SQL OLEDB connection Question


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