Sunday, February 28, 2010

Difference between section and foreach loop in Smarty

The main difference between SECTION and FOREACH is that

1.For SECTION you can start from a specific value, and can also set a step for the iteration, whereas for FOREACH you have to loop over all values.

2.foreach is used for associative arrays

No comments:

Post a Comment

I just got my #domain @BigRock. Get upto 25% off with my personalized coupon link Get upto 25% off