I am Studying about PHP SPL - (Standard PHP Library), And i am having some problems understanding the interface Iterator.
I am studying from this example:Iterator Interface.
And i am really dont understand how does Iterator Interface allow us to run with a "foreach" loop trough the class elements, I will be very thankful if some one can please pass me trough this code, Thank you all and have a nice day.