1) Do the following two examples do the same thing?
//example 1
if (!$result)
{
echo("
Result is FALSE!
");
}
//example 2
if (!$result)
{
?>
Result is FALSE!
<?php
}
2) If they do the same thing, how should I decide which to use, when? In other words, when should I use echo, and when should I just pop out of php mode? I'm especially interested for large blocks of html in if's.
thanks!
b4m
//example 1
if (!$result)
{
echo("
Result is FALSE!
");
}
//example 2
if (!$result)
{
?>
Result is FALSE!
<?php
}
2) If they do the same thing, how should I decide which to use, when? In other words, when should I use echo, and when should I just pop out of php mode? I'm especially interested for large blocks of html in if's.
thanks!
b4m