Home > Backend Development > PHP Tutorial > {dede:loop}的有关问题

{dede:loop}的有关问题

WBOY
Release: 2016-06-13 13:08:52
Original
765 people have browsed it

{dede:loop}的问题
{dede:loop}的问题,怎么我字段的数据为“0”的话,[field:字段/]显示为空呢???如果把0改为任意,就可以显示相应的数值,就是0的话,就显示为空,谢谢大家了。

------解决方案--------------------
因为PHP里empty函数检查是否为空的时候,0也是作为空判断的,所以可能是{dede:loop}用了empty函数。

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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template