title: Change names in my code php breadcrumbs
body: <p>I need a little help here I have a breadcrumbs in php. My directory is like this:</p>
  
  <pre><code>folder/name.php
  </code></pre>
  
  <p>and using this code I get on output like this:</p>
  
  <pre><code>Home » folder » name
  </code></pre>
  
  <p>What I want to do is to put name that I want instead of the code gets the name of folder and file.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>&lt;?php 
      $path = $_SERVER["PHP_SELF"];
      $parts = explode('/',$path);
      if (count($parts) &lt; 2)
      {
      echo("home");
      }
      else
      {
      echo ("&lt;a href=\"/\"&gt;Home&lt;/a&gt; &amp;raquo; ");
      for ($i = 1; $i &lt; count($parts); $i++)
          {
          if (!strstr($parts[$i],"."))
              {
              echo("&lt;a href=\"");
              for ($j = 0; $j &lt;= $i; $j++) {echo $parts[$j]."/";};
              echo("\"&gt;". str_replace('-', ' ', $parts[$i])."&lt;/a&gt; » ");
              }
          else
              {
              $str = $parts[$i];
              $pos = strrpos($str,".");
              $parts[$i] = substr($str, 0, $pos);
              echo str_replace('-', ' ', $parts[$i]);
              };
          };
      };  
  ?&gt;
  </code></pre>
  
  <p>Second code</p>
  
  <pre><code>&lt;?php
      $Pages = array(
        '/NewTgoTv' =&gt; 'Clothes',
        '/NewTgoTv/33.php' =&gt; 'Something'
      );
  
      $path = $_SERVER["PHP_SELF"];
      $parts = explode('/',$path);
      if (count($parts) &lt; 2)
      {
      echo("home");
      }
      else
      {
      echo ("&lt;a href=\"/\"&gt;Home&lt;/a&gt; &amp;raquo; ");
      for ($i = 1; $i &lt; count($parts); $i++)
          {
          if (!strstr($parts[$i],"."))
              {
              echo("&lt;a href=\"");
              for ($j = 0; $j &lt;= $i; $j++) {echo $parts[$j]."/";};
              echo("\"&gt;". str_replace('-', ' ', $Pages[$parts[$i]])."&lt;/a&gt; &amp;raquo; ");
              }
          else
              {
              $str = $parts[$i];
              $pos = strrpos($str,".");
              $parts[$i] = substr($str, 0, $pos);
              echo str_replace('-', ' ', $Pages[$parts[$i]]);
              };
          };
      };  
  ?&gt;
  </code></pre>