thinkphp Simple Traversal Array method analysis, thinkphp traversal array _php Tutorial

Source: Internet
Author: User
Tags php template smarty template

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 ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.