thinkphp Simple Traversal Array method analysis, thinkphp traversal array
In this paper, the thinkphp Simple Traversal array method is analyzed. Share to everyone for your reference, as follows:
There are the following arrays:
Array (' id ' =>1, ' username ' = ' mgckid ', ' sex ' =>1 ) Array ( ' id ' =>2 , ' username ' = ' yezi ', ' sex ' =>0 )
thinkphp Template label notation:
<{$vo .id}>---------<{$vo .username}>-----------<{$vo .sex}>
Traversal results:
1---------mgckid--------------------yezi-----------0
Attach the Weave dream label to enhance understanding:
{dede:arclist typeid= ' row= ' 5 ' titlelen= ' +} [field:title/] [field:arcurl/] [field:pubdate/] [field:infos/] [field:writer/] {/dede:arclist}
Add: small make up here to recommend a site of the PHP format beautification of the layout tools to help you in the future of PHP programming code layout:
PHP Code online format beautification tool:Http://tools.jb51.net/code/phpformat
More interested in thinkphp related content readers can view this site topic: "thinkphp Introductory Tutorial", "thinkphp Common Methods Summary", "Smarty Template Primer Basic Tutorial" and "PHP template technology Summary."
It is hoped that this article is helpful to the PHP program design based on thinkphp framework.
http://www.bkjia.com/PHPjc/1127888.html www.bkjia.com true http://www.bkjia.com/PHPjc/1127888.html techarticle thinkphp Simple Traversal Array method analysis, thinkphp traversal array This paper analyzes the thinkphp simple traversal array method. Share to everyone for your reference, as follows: There are the following arrays ...