How To Use php tags in the html(sololearn)? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How To Use php tags in the html(sololearn)?

php tags

12th Sep 2017, 4:45 PM
mahdi
mahdi - avatar
3 Answers
+ 4
Create a document with .PHP extension. In that document you could write PHP codes along with HTML codes... e.g. <?php require("header.php"); // or Any php code ?> <html> .... <?php echo('Woo'); ?> ... </html> <?php require("footer.php"); // or Any php code ?>
12th Sep 2017, 4:49 PM
Kartikey Sahu
Kartikey Sahu - avatar
+ 1
Fine Thanks ☺☺
12th Sep 2017, 5:02 PM
mahdi
mahdi - avatar
- 1
<DOCTYPE html> <html> <Head> <\head> <body> <?php Code here ? > </body> <html>
12th Sep 2017, 4:56 PM
josh mizzi
josh mizzi - avatar