PHP - Advanced escaping using conditions

0 votes
105 views
added Sep 24, 2019 in PHP by lcjr First Warrant Officer (9,190 points)
<?php if ($expression == true): ?>
//   This will show if the expression is true.
<?php else: ?>
//   Otherwise this will show.
<?php endif; ?>

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...