It translates to this:
<td>
<?php if($contact['Contact']['sex'] == 'm'): ?>
Male
<?php else: ?>
Female
<?php endif ?>
</td>
But there is really nothing wrong with the line that is actually in your file.
7
solved Unknown php syntax [closed]