Home>

There are the following arrays:

array (
  array (
    "id" =>1,    "username" =>"mgckid",    "sex" =>1
  )
  array (
    "id" =>2,    "username" =>"yezi",    "sex" =>0
  )
)

thinkphp template tag writing:

<volist name="data">
  <{$vo.id}>---------<{$vo.username}>-----------<{$vo.sex}><br />
</volist>

Traversing results:

1 --------- mgckid ----------- 1
2 --------- yezi ----------- 0

Attach a contrast to the dream-weaving tag to enhance understanding:

{dede:arclist typeid="20" row="5" titlelen="40"}
  [field:title /] [field:arcurl /] [field:pubdate /] [field:infos /] [field:writer /]
{/dede:arclist}
php
  • Previous Working with Data in ASPNET 20 No 52: Uploading Files with FileUpload
  • Next jQuery workaround to prevent duplicate binding events