PHP
downloads | documentation | faq | getting help | mailing lists | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

empty("0")> <错误报告
Last updated: Sun, 25 Nov 2007

view this page in

初始化

PHP 4 中静态变量和类成员仅接受标量值,而 PHP 3 中接受任何有效的表达式。这是由于解析和执行的分离,导致只有在解析器看到初始化代码后才能执行。

应该使用构造函数来初始化类。对静态变量,只有静态的值才有意义。



add a note add a note User Contributed Notes
初始化
There are no user contributed notes for this page.

empty("0")> <错误报告
Last updated: Sun, 25 Nov 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites