PHP में Array की Traversing करने के लिए यानी किसी Array के सभी Elements को एक-एक करके Access व Manipulate करने के लिए कुछ Functions बनाए गए हैं। इन Functions को Iterator Functions कहते हैं। PHP का हर Array इस बात का ध्यान रखता है कि हम Currently Array के किस Item के साथ प्रक्रिया कर रहे हैं। ये एक Pointer होता है, जो Array के Current Element को Point करता है। Array के Current Element के Pointer को Iterator कहा जाता है। PHP हमें इस Iterator को … [Read more...]
PHP each() – The Iterators Functions
Filed Under: Core PHP in Hindi Tagged With: array iterator, class iterator, collection iterator, current() Function, custom iterator, each() Function, end() Function, for loop iterator, how to use iterator, iterator class, iterator design pattern, iterator end, iterator example, iterator interface, iterator methods, iterator pattern, iterator pattern example, iterator remove, iterator set, iterator size, key() Function, next() Function, php directory iterator, php each, php for each loop, php iterator, php iterator fuctions, php iterator interface, prev() Function, recursive directory iterator, reset() Function, reverse iterator, set iterator, struts iterator example, what is an iterator, what is iterator