Home > Article > Backend Development > ecshop smarty template
{if $k lt 3}
{if $k lt 3}
"" This is the start and end tag of the smarty template (it is customized like this here). Needless to say, foreach traverses the array, and from represents the array source to be traversed (i.e. $ my_cat_rec_goods[32] this array), item is equivalent to the value in the array, key is equivalent to the key, lt means less than, {if $k lt 3} means that when the key value is less than 3, place a pair of