Suppose we have something like this:
<?php
while(some statement here)
{
echo "some HTML here";
//..................
}
?>
As you know we can do it like this :
<?php
while(some statement here)
{?>
some HTML here
..............
<?php
} ?>
Now,What if I have something like this?
<?php
function example(){
$out="";
while(some statement here)
{
$out.="some HTML here";
$out.="some other HTML here";
//.......................
}
return $out;
}
?>
How can I get the HTML code out of <?php ?>
so it'll be more readable and can be edited easily using an editor like NotePad++ ? Thanks in advance