+ 1

PHP IN HTML ?

Can a HTML code contain PHP codes ?

15th Jul 2017, 6:14 AM
Mateo Do
Mateo Do  - avatar
2 Answers
+ 4
Not really: Php code contain Html code, but you cannot say the inverse, because Html (browser opening such document) will not interpret Php code, but opened at server side with Php interpreter will run Php code and output (send to user side) Php a Php code free Html document dynamically build ^^
15th Jul 2017, 6:24 AM
visph
visph - avatar
0
Ya... .php and .html both contain php and html codes. Only thing is php opening tag to do php coding(<?php)
15th Jul 2017, 1:15 PM
Animesh
Animesh - avatar