Add power to array in PHP

August 20, 2003 16:30
Tags: ,

When you use the array in PHP, you should always use the some native PHP functions: foreach() to get the next element, or reset() to reset the pointer of an array. In this article from DevArticles, you will find some weapons to make access your array more easily and efficiency. You have to create the Iterator class your own due to no source code provided, but I think it is also a good exercise for the people who is learning PHP.


Comments are closed.