Netbeans PHP Validation sees endif as a syntax error
Posted
by Asaf
on Stack Overflow
See other posts from Stack Overflow
or by Asaf
Published on 2010-05-17T07:54:27Z
Indexed on
2010/05/17
8:00 UTC
Read the original article
Hit count: 290
I have this part of code
<?php for ($j=0; $j < $count; $j++): ?>
<?php if(isset(votes[$j])): ?>
<dt>something something</dt>
<dd>
<span><?php echo $result; ?>%</span>
<div class="bar">
</div>
</dd>
<?php else: ?>
<dt>info</dt>
<dd>
<span>0</span>
<div class="bar">
<div style="width: 0px"></div>
</div>
</dd>
<?php endif; ?>
<?php endfor; ?>
now Netbeans insists that on the endif line (near the end) there's a syntax error:
Error Syntax error: expected: exit, identifier, variable, function...
Is there some sort of known problem with the validation of endif on Netbeans ?
© Stack Overflow or respective owner