PHP - Advanced escaping using conditions

0 votes
174 views
added Sep 24, 2019 in PHP by lcjr First Warrant Officer (11,790 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.
...