It would be a horrendous security hole if you could view source and see the underlying PHP code – you’d see database credentials, trade secrets, etc.
PHP is a server-side language. It gets executed on the server, usually to build HTML that then gets output to the browser.
solved .php file on website, source in html [closed]