At 7/28/2007 07:40 AM, C.R.Vegelin wrote:
I have a PHP script, as follows:
<!--
<?php
echo "should this be echoed ?";
?>
-->
As expected, the browser shows nothing,
but when I view Source in the browser, I see:
<!-- start HTML comment
should this be echoed ?-->
Shouldn't it be just: <!-- -->, without the echo result ?
I don't expect PHP to be active between <!-- -->.
<!-- ... --> is an HTML comment.
/* ... */ and //... are PHP comments.
The HTML comment syntax does not affect PHP, and PHP comment syntax
does not affect HTML.
http://www.php.net/manual/en/language.basic-syntax.comments.php
Regards,
Paul
__________________________
Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php