In ruby on Rails, you have the option to create cleaner and well formated output:
<div>
<%= 3.times do -%>
<%= "Hello World" -%>
<%= end -%>
</div>
and the output will be:
<div>
Hello World
Hello World
Hello World
</div>
But when i do the same thing in php:
<div>
<?php for ($i =0; $ < 3;$i++): ?>
<?php echo "Hello World" ?>
<?php endfor; ?>
</div>
I get something like this:
<div> Hello World
Hello World
Hello World
</div>
is there something like rubys "-%>" in php that help me acheive the same thing?