Reputation: 184
I have a test.php file and this file contains some PHP code, HTML elements and some internal JavaScript and some external JavaScript include.
I want to know which is first to load or execute.
PHP or HTML or JavaScript? I want to know execution order.
Your answers are greatly appreciated and very helpful to me and others also.
Upvotes: 14
Views: 9781
Reputation: 173662
Pragmatically speaking, this is the typical order:
Upvotes: 16
Reputation: 10074
PHP will execute first, then HTML and finally javascript.
Upvotes: 5