Hello guys, I encountered a syntax error, and cannot figure out the
reason, for example:
== CODE ==
1:?php
2:$opts = array ('header'='str1'.'str2');
3:?
===
Works fine, but when I try to put it into a class,
Dasn wrote:
I got the syntax error. Why?
Read the first paragraph on the following page.
http://us3.php.net/manual/en/language.oop5.properties.php
[quote]
... This declaration may include an initialization, but this initialization must be a constant
value--that is, it must be able to be
2010/2/11 Jim Lucas li...@cmsws.com
Dasn wrote:
I got the syntax error. Why?
only constant literal is allowed.
You can think that it is static complie but not on runtime .
Regards,
Eric,
Read the first paragraph on the following page.
3 matches
Mail list logo