You could put a unique tag at the beginning and the end of the content and harvest it with a fairly simple regular expression.
But in the long run, the right way to do it is to turn your entire approach upside down.
Store all of your content in its purest form -- without the headers, footers, menu bars, ads, decorative elements, etc.
Then use PHP -- or, for that matter, server-side includes -- to pull in the standard headers/footers/etc.
This makes it easy to serve up alternative representations of your site (for printers, for Palm Pilots, et cetera). Perhaps even more importantly, you can redesign your site without winding up in a rest home for nervous disorders.
You don't have to know a lot of PHP to do this, or for that matter a lot about programming in general. And, as I mentioned, you actually can accomplish it using server-side includes (shtml) instead of PHP.
The advantage of PHP for a simple task such as this is that PHP's support for conditional behaviors is much more flexible and much easier to implement than server-side includes can provide.