Home > Backend Development > PHP Tutorial > html中<{foreach from=$groups item=group}>这样的代码称为什么?此html是由php输出来的

html中<{foreach from=$groups item=group}>这样的代码称为什么?此html是由php输出来的

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:39:46
Original
1146 people have browsed it

因为我想写一个if判断在这个循环里面,不知道怎么写,也不知道这种代码叫什么名字,所以百度不了,只能来问大家了...

回复内容:

因为我想写一个if判断在这个循环里面,不知道怎么写,也不知道这种代码叫什么名字,所以百度不了,只能来问大家了...

PHP 模板引擎 Smarty
http://www.smarty.net/docs/zh_CN/language.function.foreach.tpl
http://www.smarty.net/docs/zh_CN/language.function.if.tpl

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template