foreach ($_SESSION['pg'] as $str) { echo '' . $str . '
'; }