PHP - Use H1 Tags as Page Title
<p>I just started with php. I have a pretty simple site with header and footer includes and the content in between. </p>

<p>Right now, I have each page getting the title with a variable, like so:</p>

<pre><code>&lt;?php $title = "My Company - New Products"; ?&gt;
</code></pre>

<p>However, instead of having that on each page, in the header include, I'd just like to have the title be a standard "My Company - " and then have it pick up each page's H1 tag.</p>

<p>This seems simple, but all my search results have been specific to various CMS's.</p>

<p>Thanks a lot.</p>
