The foreach loop (extended for-loop) is new for the C Language/C++ Language/C# Language family of languages, but is well known for the VB and PHP programmers. This programming construct serves to iterate over all elements of an array, list or other collection of elements (IEnumerable). It passes through all the elements of the specified collection even if the collection is not indexed.
foreach (type variable in collection)
We adding new programming language tutorials very soon.
We make a Collaboration with HackIsOn YouTube Channel So, Please Subscribe Their Channel and keep supporting