Many new ThinkPHP beginners will encounter problems when passing variables in templates, many video tutorials use $ v. the channel method is as follows: & lt; ahref & quot; {: U (Chatset, array (id & gt; $ v. channel)} & quot; title & quot; set & quot; class & quot; btnbtn-minitip & quot many new ThinkPHP beginners will encounter problems
When the template passes variables, many video tutorials use the $ v. channel method as follows:
$ V. channel)} "title =" set "class =" btn-mini tip ">
This will cause a problem during URL parsing. the URL is followed by the id/Arraychannel.html
In fact, in the TP manual variable output, in addition to the above method, the following method can be used for array output:
$ V ['channel']
This method is often used to output multi-dimensional arrays. Using this method will not cause any problems.
Official online manual-variable output address: http://document.thinkphp1.cn/manual_3_2.html#var_output