Your Source for Web Development Resources

Your Source for Web Development Resources

CodeIgniter’s alternator() Function


It’s surprising to me how often I find little functions for tedious tasks, that CodeIgniter already has built in. One of these functions is the alternator() function in the String Helper. What the alternator() function does is allow two or more items to be alternated between when iterating through a loop.

CodeIgniter’s alternator() Function
, 10.0 out of 10 based on 1 rating

Choose It

VN:F [1.9.3_1094]
Rating: 10.0/10 (1 vote cast)

Leave a Response

Please note: comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.