What are the PHP equivalents of .hasNext()
and .hasNextLine()
in Java? If there is none, how do I detect EOL and EOF? Purpose: Have a file of generic length, but every line has the same format:
string number number
The end product derived from this list is two new text files, one where the lines are ordered after the first number, one where the lines are ordered after the second number.
Enjoy the Filesystem Functions: