Re: Has this always been the case?
| From: | Stuart Dallas | Date: | Fri, 31 May 2013 11:12:11 +0000 |
| Subject: | Re: Has this always been the case? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-321293@lists.php.net to get a copy of this message | ||
On 31 May 2013, at 12:08, shiplu <shiplu.net@gmail.com> 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/