?> <h2>Matches for <a href="<?php echo $link; ?> "><?php echo $link; ?> </a> </h2> <?php foreach ($matches as $match) { ?> <div class="match"> <?php echo htmlspecialchars($grepper->getContextOfMatch($match[1])); ?> </div> <?php } ?> <?php } ?> </section> <section class="debug"> <h1>Debug info</h1> <div class="match"><span>Visited links : </span><?php var_dump($grepper->visitedLinks); ?>