that would be very confusing to understand for a beginner. PHP you can write <?php echo "Hello world" ?> right in a html file and see it just by refreshing the page.
print "hello world"
beats PHP: <?php echo "hello world" ?>http://modpython.org/live/mod_python-3.3.1/doc-html/pyapi-ps...
But it's not a very good architecture, in the meanwhile we had better approaches, such as MVC and MVVM.
Anyway, CS is not web programming, but should focus on the fundamentals of computer science, for which there are far better languages than PHP.