For example:
I have a php file like this:
<?php
if ($var == true)
{
?>
<p>Some text here</p>
<?php
}
else
{
?>
<p>Some different text</p>
<?php
}
?>
Is this bad to do, or is it better to use echo() like this:
<?php
if ($var == true)
{
echo ("<p>Some text here</p>");
}
else
{
echo ("<p>Some different text</p>");
}
?>
I find it much easier to use ?> HTML CODE <?php
But does it have any compatibility, or performance issues?