Parse error: syntax error, unexpected ‘endforeach’ (T_ENDFOREACH) in

<ul class=”project-extension-side-link”> <?php foreach($projectextensions as $projectextension){?> <li <?php if($section==’project-extension’) {echo ‘class=”active”‘;}>><span>Project 1</span></li> <li><a href=””><?php echo $projectextension->post_title; ?></a></li> <li><a href=””>Project 3</a></li>…