|
Posted by R. Rajesh Jeba Anbiah on 11/10/06 08:04
Chung Leong wrote:
<snip>
> Text outside of <?php ?> is compiled to echo operations. So there's no
> basic difference between the two methods.
If it's true, manual is contradicting:
<quote src="http://in.php.net/language.basic-syntax#AEN2651">
<snip>
} else {
?>
<strong>This is false.</strong>
<?php
}
?>
This works as expected, because when PHP hits the ?> closing tags, it
simply starts outputting whatever it finds until it hits another
opening tag. The example given here is contrived, of course, but for
outputting large blocks of text, dropping out of PHP parsing mode is
generally more efficient than sending all of the text through echo() or
print().
</quote>
--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
Navigation:
[Reply to this message]
|