Heim > Artikel > Backend-Entwicklung > php 对类属性 赋值 疑惑
测试代码:
<code><span><span><?php </span><span>$a</span> = <span>new</span> controller; <span>$a</span>->test(); <span><span>class</span><span>controller</span>{</span><span>public</span><span>$menuList</span> = time(); <span>public</span><span><span>function</span><span>test</span><span>()</span>{</span><span>echo</span><span>$this</span>->menuList; } } <span>?></span></span></span></code>
这样会报错的,为什么
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });以上就介绍了php 对类属性 赋值 疑惑,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。