HTM; $stateMap = array( 'ok' => 'success', 'info' => 'info', 'error' => 'danger' ); foreach ($messages as $arMessage) { list($type, $message) = $arMessage; $out .= '
  • '; $out .= htmlspecialchars($message); $out .= '
  • ' . "\n"; } $out .= <<

    back to the index

HTM; echo $out; ?>