Ya, but the real optimal way to handle that is to use templates to read in files to a variable and replace your template values with your PHP variables, then you can output the entire page in one echo.
But, that's about as far as I'm going to go on this topic. You can opt to create your own template engine, or search around for the many available engines already in existence.
Either way, it's going to take some strategy and planning to implement that in a sitewide solution.