Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the writing of the judgment statement in the phpcms v9 template

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces phpcms v9 template to determine what is the writing of the sentence, the text is very detailed, has a certain reference value, interested friends must read!

How to write phpcms v9 template

phpcms v9 template to determine the use of if statements, specific examples of use are as follows:

{if $catid==10} 1{elseif $catid==11} 2{else} 3{/if}

If it is in the loop body {loop $data $r}, use:

{if $r[catid]==10} 1{elseif $r[catid]==11} 2{else} 3{/if} The above is all the contents of the phpcms v9 template to determine what the sentence is written. Thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report