What is the difference between... <?php if stuff : ?>
PHP Question! 'Cus I'm A Self Taught Hack.
7
What is the difference between...
<?php if stuff : ?>-- And This --
stuff
<?php else: ?>
stuff
<?php end if; ?>
<?php if stuff { ?>Both work the same but I'm sure there is a reason to use one or the other, I just don't know what it is.
stuff
<?php } else { ?>
stuff
<?php } ?>
- limcode
- [ 1 ] Thanks
- SteveJohnson
- phpbbxpert
- wayfarer
- jasonmorgan
- [1] reply
- wayfarer
Next Topics on Trending Feed
-
7