title: PHP Simple modification/correction
body: <p>I got this code from someone, it's almost perfect to create a dynamic breadcrumb, but there just a little glitch because it echoes two dividers before the breadcrumb:</p>
  
  <pre><code>$crumbs = explode("/",$_SERVER["REQUEST_URI"]);
  foreach($crumbs as $crumb){
      echo ucfirst(str_replace(array(".php","_"),array(""," "),'&gt;' . $crumb));
  }
  </code></pre>
  
  <p>it echoes:</p>
  
  <p>">>content>common>file" </p>
  
  <p>what I want it to look like is </p>
  
  <p>"content>common>1"</p>
  
  <p>and also I will deeply appreciate if someone can tell me how can I add links for all the items in the array except the last one (file)?</p>
  
  <p>Thank you so much everybody, this website really helped me a lot to learn php by examples!</p>