and anyone who may enter for the foreach on dom elements, or NodeList Iteration class.
I recommend a gist that I found using a lot in my current web Proyect. Iterate over a NodeList
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.