2-Dimensional Arrays While Reading Files


I have a folder with several files named info1.txt, info2.txt, info3.txt, and so on. I have several folders that contain a different number of info files. I am able to read and display each line from each file by using:
$files = glob("$folder/info*.txt");
foreach ($files as $file) {
$lines = file($file);
foreach ($lines as $line) {
echo “<p class=“quotes”> $line


However, what I want to do is display each line from each txt file as a separate div class. So I am assuming the best way to go about doing this is to have an array of info text files that each contain arrays of each line in said file. Each info file has 4 lines. So every info array will contain 4 string arrays. In addition, I want to split these into two columns. For example, if one folder has 11 info text files, I want 5 in the right column and 6 in the left.

Kind of difficult since I am totally new to PHP and have yet to concoct a solution for this. How would I go about displaying the information in this way?