";
$field = preg_split("/\|/", trim($regarr[$i]));
$pres = array_values(preg_grep("/_${field[4]}_/", $presentations));
#
# Only list registrants that gave presentations
#
if ($pres[0] == "") continue;
#
# Name and affiliation
#
$z = "${field[0]} ${field[1]}";
echo "| ${z} | ";
echo "${field[2]} | ";
#
# Link abstract if available
#
echo "";
$abs = array_values(preg_grep("/_${field[4]}\./", $abstracts));
if ($abs[0] != "")
{
$pdf = substr($abs[0], strrpos($abs[0], '/'));
echo "${field[3]} | ";
} else { echo "None submitted"; }
#
# Link presentations
#
echo "";
for ($j = 0; $j < count($pres); $j++)
{
$tmp = preg_split("/\_/", $pres[$j]);
$type = (substr($tmp[count($tmp) - 1], 0, 1) == "o") ? "Oral" : "Poster";
$pdf = substr($pres[$j], strrpos($pres[$j], '/'));
echo "${type} ";
}
echo " | ";
echo "
";
}
echo "