تكرار الشيء - للمصفوفات في القوالب

تكرار الشيء - للمصفوفات


<lezaz:each/>
  AttributeDescription        Default
  --------------------------------------------
  id         referance for this syntax use like lezaz#id             Null
  array      array parameter without $ or $_SESSION                  Null
  type       type of array use session for $_SESSION['array']        variable  you can use session,server,get,post,cookie,request,variable
  counter    initial value for counter parameter                     1

  inside code you can use
  lezaz#id_key to print key item
  lezaz#id_value to print value item
  lezaz#id_counter to print counter item

  Example
  --------
<lezaz:eachid='ideach'array="variable1"type="session"counter="5"/>

<lezaz:eachid='ideach'array="variable1"type="session"counter="5">
  lezaz#ideach_counter: lezaz#ideach_key =>  lezaz#ideach_value <br>
</lezaz:each>
  the result syntax for lezaz#ideach is true if there is at least 1 item in array