I read hundreds of PHP examples and seen many php vids but I never really heard a reason why a file needs the .php extension.
In my trial and error learning it seems like a .html can handle a little php code but if you use alot you need a .php extension.
Like this example of mine....
100 lines of html
then
50 lines of php
then
100 lines of html
This example didn't work when it had a .html extension but when I switched to .php it worked.
I was just curious if there is definition of why and when you use a .php extension?