Does HTML tags within PHP code work? -
i using php echo bunch of text table in database. problem is, text printing php poems , need have line breaks separate different lines. (one poem stored in cell of table)
my question code below work? i.e. can <br>
tag work? if doesn't, can produce intended results?
(i haven't set php cant test myself...) in advance!
<?php echo "to drift every passion till soul <br> stringed lute on winds can play, <br> have given away <br> mine ancient wisdom, , austere control? <br> "; ?>
yes can use html code inside php using echo function. here's example link manual might understand better.
<?php echo "<html>"; echo "<title>html php</title>"; echo "<b>my example</b>"; //your php code here print "<i>print works too!</i>"; ?>
Comments
Post a Comment