<?php
$file = array('"The Albany Academies (AA & AAG)","Closed, Play will be at 7 pm tonight"','"Amsterdam Head Start","Closed, Staff Report, Parent/Teacher conference schedule normal"','"Averill Park Pre School","Closed, closed Open House 7:00 -8:00 still scheduled"');
while ($row = each($file)) {
$match = preg_match("/\"(.*)\"\,\"(.*)\"/i", $row[1], $matches);
echo '<b>' . $matches[1] . '</b><br>';
echo $matches[2] . '<br><br>';
}
Fatal error: Uncaught Error: Call to undefined function each() in /in/7T0Vf:4
Stack trace:
#0 {main}
thrown in /in/7T0Vf on line 4
Process exited with code 255.
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /in/7T0Vf on line 4
<b>The Albany Academies (AA & AAG)</b><br>Closed, Play will be at 7 pm tonight<br><br><b>Amsterdam Head Start</b><br>Closed, Staff Report, Parent/Teacher conference schedule normal<br><br><b>Averill Park Pre School</b><br>Closed, closed Open House 7:00 -8:00 still scheduled<br><br>
<b>The Albany Academies (AA & AAG)</b><br>Closed, Play will be at 7 pm tonight<br><br><b>Amsterdam Head Start</b><br>Closed, Staff Report, Parent/Teacher conference schedule normal<br><br><b>Averill Park Pre School</b><br>Closed, closed Open House 7:00 -8:00 still scheduled<br><br>