-3

is there's any difference bewteen using html code in php code or php code in html code ?Does it differ in the performance ?

S SA
  • 1
  • 2
  • I'm not entirely sure what you are asking, but [this](https://stackoverflow.com/questions/13840429/what-is-the-difference-between-client-side-and-server-side-programming) might help. – Ivar Mar 05 '23 at 16:01
  • I would encourage you to test this yourself. You know what you're talking about, which means you have examples of both. Simply test those to see which is the most performant, or if there is no difference. – KIKO Software Mar 05 '23 at 16:02

1 Answers1

-1

There is no performance difference between using HTML in a PHP file and using PHP in an HTML file. It's more about structuring and organizing your code. Using PHP in HTML code allows for more dynamic content, whereas using HTML in PHP files allows for easier separation of the presentation layer and the application logic.

Alon Alush
  • 719
  • 3
  • 15