<?php $students = explode(';', $projet['student_infos']); ?> <ul class="student-project"> <?php foreach ($students as $student) { ?> <?php preg_match_all('#\\[(\\w+)]#', $student, $id); ?> <?php $trueid = str_replace($crochet, '', $id[0]); ?> <?php $website = $etudiantMysqli->getWebSiteByid($trueid); ?> <li><a target="_blank" href=<?php echo $website; ?> ><?php echo preg_replace($pattern, '', $student); ?> </a></li> <?php } ?> </ul> <?php $prix = $projet['prix']; ?>