1. PHP script can be written in side of HTML code and save the file with extension of .php. The embedded PHP file get executed in the Webserver, the browser receives only the HTML and other client side files.
2. Php files can also be embedded with css and js files.
3. Using template engines like Smarty, DWOO, Mustache, Blade we can embed php files.