« Return to Thread: namespace keyword

Re: namespace keyword

by Greg Beaver-2 :: Rate this Message:

Reply to Author | View in Thread

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

 « Return to Thread: namespace keyword