$letters = range ( 'A', 'Z' ); echo '<p>[ '; foreach ( $letters as $letter ) echo '<a href="mapage.php?letter=' . $letter '</a> '; echo ']</p>'." ";