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
Re: [PHP] simplexml - can it do what I need?
Re: [PHP] simplexml - can it do what I need?
Re: [PHP] php selecting multiple stylesheets
cvs: pecl /llvm phpllvm.cpp phpllvm_compile.cpp phpllvm_execute.cpp phpllvm_execute.h
Re: [PHP] php selecting multiple stylesheets



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants