Test code:
<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>
This will report an error, why
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });The above introduces PHP’s doubts about class attribute assignment, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.