Re: [PHP] Has this always been the case?

[email protected] (Stuart Dallas)
Newsgroups php.general
Message-ID <[email protected]>
On 31 May 2013, at 12:08, shiplu <[email protected]> wrote:

> The property initializer in PHP can not have any expression. It should be constant value.

That is not entirely correct. It must be a literal value. The expression 'a'.'b' is a constant value.

I may be being overly picky here, but I think it's an important distinction.

-Stuart

-- 
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.