html - Parts of PHP syntax show up on page -
this question has answer here:
i have come across seemingly straightforward issue cannot find answer anywhere.
for reason php tags i’m using don’t seem working. opening <?php
, closing ?>
, reason closing tag not being recognised code , showing when refresh browser:
<?php echo <p>data processed</p>; ?>
shows in browser
data processed
;?>
i must missing simple.
you need quote strings. code outputting till end of command. end of file.
<?php echo '<p>data processed</p>'; ?>
Comments
Post a Comment