When we are working with loops, we sometimes need to check first if the variables are iterable. Otherwise, we get the warning message “Warning: Invalid argument supplier for foreach()” in PHP. We get this warning when we use variables are
Kotlin – Read file line by line from Classpath
This post shows how to leverage Java libraries (from our underlying JVM) to read file line by line from classpath using Kotlin. Also, IntelliJ IDE is used for this post but can easily be replicated in Eclipse.
How to use the Iterator interface in PHP
This article demonstrates how to use the Iterator interface in PHP. Objects implementing this interface works like an array when used in foreach constructs.
How foreach Interacts with Iterator interface
How foreach Interacts with Iterator interface