Advertisements
Advertisements
Question
In how many ways you can embed PHP code in an HTML page?
Short Note
Solution
- PHP script can be written inside of HTML code and save the file with an extension of .php. The embedded PHP file gets executed in the Webserver, the browser receives only the HTML and other client-side files.
- Php files can also be embedded with css and js files.
- Using template engines like Smarty, DWOO, Mustache, Blade we can embed PHP files.
shaalaa.com
Web Development Concept
Is there an error in this question or solution?