you've got the main ideas, but that interpretation is a little backwards:
WP uses PHP to assemble chunks of code into a single website. PHP runs first. It doesn't "break the website apart" (the website is already broken apart, in order to make it easier to manage), it "puts the website together."
To clarify a bit, WP is an example of a "Content Management System." It's code is written in php. It's a very well-developed example of what php can be used to do. The idea behind a CMS is to separate the content (articles, photos, comments, etc.) from the presentation (layout, colors, typography, display logic, etc.).
Most tutorials you find will have a "basic" example that looks something like this:
PHP Code:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo "My Website Title"; ?></title>
</head>
<body>
<h1><?php echo "Article Title"; ?></h1>
<p><?php echo "Hello, World!" ?></p>
<p>© <?php echo date('Y'); ?></p>
</body>
</html>
This is bad, IMO, because it leads people to believe that they are putting PHP in their HTML page, which is completely untrue: they're putting HTML on their PHP page.
It's okay that the example above doesn't do anything fancy - that's not the problem. To give a clearer example of how php works, the tutorial should look more like this:
PHP Code:
<?php
$pagetitle = "My Website Title";
$articletitle = "Article Title";
$articlecontent = "Hello, World!";
$year = date('Y');
$html = '<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>'.$pagetitle.'</title>
</head>
<body>
<h1>'.$articletitle.'</h1>
<p>'.$articlecontent.'</p>
<p>© '.$year.'</p>
</body>
</html>';
print $html;
?>
Edit:
As for learning resources, the best resource anywhere is the official php.net. And examining source code is a great way to learn, too!
Bookmarks