Both of the following excerpts that I have come across appear to work. But I cannot find in my PHP book any indication that the second excerpt is acceptable. I invite comments on the second excerpt: Is it efficient? Is it preferable? Is there any downside to using it?
Best,
A.
PHP Code:
<?php
if ( $here === 'qualifications' ) {
echo "Our widgets are better than anyone else's.
<br />
<br />
Call us."
}
?>
PHP Code:
<?php
if ( $here === 'qualifications' ) {
?>Our widgets are better than anyone else's.
<br />
<br />
Call us.
<?php
}
?>
Bookmarks