search

Home  >  Q&A  >  body text

About the parameters of php foreach

Can you give me some detailed explanation about the parameters in foreach? I’m new to PHP and there are a lot of things I don’t understand!

<{foreach item=adv key=key from=$cList.adv}>

 <{if $key!=3}>
           <p class="adsimg"><a target="_blank" href="<{$adv.link}>"><img width="<{$adv.width}> " height="<{$adv.height}>" src="<{$adv.product_pic}>"></a></p>
           <{/if}>
           <{/foreach}>
           
           
           
           
           
           
滿天的星座滿天的星座2757 days ago637

reply all(2)I'll reply

  • ringa_lee

    ringa_lee2017-05-16 13:14:07

    You can search a lot of them online, they are very detailed, you can take a look
    http://www.phpernote.com/php-...

    reply
    0
  • 阿神

    阿神2017-05-16 13:14:07

    This is a smarty template
    http://www.yiibai.com/smarty/...

    reply
    0
  • Cancelreply