I have a text file: [code]team [tab] rank[enter][/code] There are 8 teams in the text file. What I'm trying to do is loop through each team and assign each team in the list to a value so I can put it into my code later on in the script. Here's my code for getting the stuff out of the text file: [code]$filename = '../../https/hoopFix06/oakland.txt'; $fp = fopen ($filename, "r") or die ("error"); $data = fread ($fp, filesize($filename)); fclose ($fp); $line = explode ("\n", $data); $i = count ($line); for ($n=0; $n<$i-1; $n++) { $teamData = explode ("\t", $line[$n]); $teamName = $teamData[0]; $teamRank = $teamData[1]; }[/code] i want the first team to be labeled $a11a, the second team $a11b, the third team $a12a, the fourth team $a12b, etc. I don't know how to get those into the loop though.