Php and html separate or together? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Php and html separate or together?

Which is better using Php code and html code together or in different files? Why?

11th Jul 2017, 3:50 PM
Suzie
Suzie - avatar
2 Answers
+ 10
I think is better to separate the files because is easier to maintenance the whole code.
11th Jul 2017, 4:03 PM
Jaime Quirant
Jaime Quirant - avatar
+ 3
What about echoing html sentences? How do you separate that?
11th Jul 2017, 4:26 PM
seamiki
seamiki - avatar