\n"; //print a new line after each inner loop (4 times) iteration has completed } //end of outer loop function getValue($text,$position) //create the two variables to receive the passed values when the function is called within the code above { //function getvalue receives the perameters when passed to the function from the code above $intoArray = explode(",",$text); //explode receives request to read to the particular comma and put the text at that position into $intoarray return $intoArray[$position]; //returns the value of the word in its position } fclose ($filePointer); //close filepointer as no longer needed ?>