title: Change title on page
body: <p>I have the following code that change Title on the page:</p>
  
  <p>class.php</p>
  
  <pre><code>&lt;?php
      class Title_And_Page
      {
          public $pagekey;
          public $title;
          public $page;
          private $pages = array(
                      'start_page'    =&gt; array("Startsida", "start_page.php"),
                      'products'      =&gt; array("Produkter", "products.php"),
                      'max_ot'        =&gt; array("Max-OT", "max_ot.php"),
                      'blog'          =&gt; array("Blogg", "blog.php"),
                      'tools'         =&gt; array("Verktyg", "tools.php"),
                      'about_us'      =&gt; array("Om oss", "about_us.php"));
  
          public function __construct($pagekey)
          {
              $this-&gt;pagekey      = $pagekey;
          }
  
          public function setTitle()
          {
              if(array_key_exists($this-&gt;pagekey, $this-&gt;pages))
              {
                  $this-&gt;title = $this-&gt;pages[$this-&gt;pagekey][0]; //Returns the value in title, that it gets when the constructs is run
                  return $this-&gt;title;
              }
          }
  
          public function includePage()
          {
              if(array_key_exists($this-&gt;pagekey, $this-&gt;pages))
              {
                  $this-&gt;page = $this-&gt;pages[$this-&gt;pagekey][1]; //Returns the value in page, that will be included
                  return $this-&gt;page;
              }
          }
      }
  ?&gt;
  </code></pre>
  
  <p>Here is my some code from my index.php</p>
  
  <pre><code>    if(isset($_GET['page']))
      {
          $page = $_GET['page'];
      }
  
      $page_title = new Title_And_Page($page);
  &lt;title&gt;&lt;?= $page_title-&gt;setTitle(); ?&gt;&lt;/title&gt;
  &lt;li id="info"&gt;&lt;a href="?page=products" class='clickme'&gt;Produkter&lt;/a&gt;&lt;/li&gt;
          &lt;li id="info"&gt;&lt;a href="?page=max_ot"&gt;MAX-OT&lt;/a&gt;&lt;/li&gt;
          &lt;li id="info"&gt;&lt;a href="?page=blog"&gt;Blogg&lt;/a&gt;&lt;/li&gt;
          &lt;li id="info"&gt;&lt;a href="?page=tools"&gt;Verktyg&lt;/a&gt;&lt;/li&gt;
          &lt;li id="info"&gt;&lt;a href="?page=about_us"&gt;Om oss&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>This works. However, I have articles in the blog page that contains "Read more"-links. When I click on a "Read more"-link, the URL changes to this: index.php?page=blog&amp;readmore_from_firstpage=1&amp;article_header=Vilken kolhydrat är bäst att äta efter träningen?</p>
  
  <p>How can I change the title of the page, to the value in $_GET['article_header'] as you can see above?</p>