Use of PHP in theme files and echo…
-
Hi guys (& gals),
Been using WP a little while now, and not working hugely on the site, it’s mainly a side project/hobby to spend time on.
Anyway, my question is in relation to using PHP inside template files…
Often i see code like this…
<?php if_something() { ?>something<?php } ?>
Is there a particular reason coders are avoiding just using echo in the php?
I just personally prefer to echo out what i need, but wondered if there was a particular reason to use the above method over echo statements.
I would assume not, but it cannot hurt to ask aye? ??
Thanx in advance for any feedback…
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Use of PHP in theme files and echo…’ is closed to new replies.