Home > Backend Development > PHP Tutorial > destoon 里边关于求数组长度的问题

destoon 里边关于求数组长度的问题

WBOY
Release: 2016-06-23 14:10:45
Original
998 people have browsed it

例子:
求出$tagss这个数组的length(长度或者称之为大小),请问该怎么写?? {loop $tagss  $k $v} 

{/loop}

还有,在模板页面怎么直接用php代码呢??谢谢!!


回复讨论(解决方案)

为什么要“求”呢?他的大小不是有你用 pagesize 参数指定的吗?

这个里面可以用php的函数吧  

用php的写法:

当然可以把这个改成你的模板里支持的写法。你搜一下。

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