Get the App
SLTechnology News&Howtos  ›  Servers  › 

An introduction to dede:php tags

Shulou Source: shulou.com Published: 2022-06-02 02:47:10 10月04日 Update

This article mainly introduces the introduction of dede:php tags, has a certain reference value, friends in need can refer to. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.

What is the dede:php tag?

Introduction to dede:php tags

Although dede tags are powerful, many functions are still not well implemented. At this point, you can use its PHP tag, that is, to write PHP statements in the template to get whatever you want.

Tag name: {dede:php} {/ dede:php}

Give two small examples to prove that it can do anything:

1. Output 1-100

{dede:php} for ($iFields ['reid'] = 0) {echo $refObj- > Fields [' title'];} else {$reid = $refObj- > Fields ['reid']; $row=$dsql- > GetOne (' SELECT id,reid,typename from jifu_arctype where id ='. $reid); echo $row ['typename'] {/ dede:php} Thank you for reading this article carefully. I hope it will be helpful for everyone to share the brief introduction of the dede:php tag. At the same time, I also hope that you will support us, pay attention to the industry information channel, and find out if you have any problems. Detailed solutions are waiting for you to learn!

Tags: Tags introductions articles names outputs power things values examples content functions at the same time locations methods friends columns templates ribbons industries statements Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS MySQL MariaDB vpn Redmi