Home  |  Linux  | Mysql  | PHP  | XML
From:Martin Scotta Date:Thu Jul  2 17:28:27 2009
Subject:namespace keyword
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?

-- 
Martin Scotta
Navigate in group php.general at sever news.php.net
Previous Next


Your recent visits
Re: [PHP-INSTALL] Browser tries to download php file
Re: [PHP-WIN] Can i run php script using command prompt in any location by typing scriptname.php
content type headers
RE: content type headers
exit status


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