+ 1

Can we include HTML in PHP ? How

28th Sep 2016, 1:53 PM
Driss Baidou
Driss Baidou - avatar
4 Answers
+ 1
Yes. like that <?php echo "<h1>Title </h1>"; ?> Or like that. <?php echo ?> <h1>Title </h1> <p>Lorem ipsum... </p> <?php ?>
28th Sep 2016, 1:54 PM
Driss Baidou
Driss Baidou - avatar
+ 1
<?php include('myHtmlFile.html'); ?>
28th Sep 2016, 3:08 PM
Oliver Brown
Oliver Brown - avatar
0
<?php echo "<h1> Welcome </h1>"; ?>
29th Sep 2016, 4:51 AM
mitul patel
mitul patel - avatar
0
<?php echo '<div class="my_class">your data to be displayed.</div>';
4th Oct 2016, 5:15 PM
Deepak Singh
Deepak Singh - avatar