Subversion Repositories personal-webbase

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

  1. <?php
  2.  
  3. function entferne_anker($url)
  4. {
  5.         if (strpos($url, '#') !== false)
  6.         {
  7.                 $ary = explode('#', $url);
  8.  
  9.                 $tmp = '';
  10.                 for ($i=0; $i<=count($ary)-2; $i++)
  11.                 {
  12.                         $tmp .= $ary[$i].'#';
  13.                 }
  14.                 $url = substr($tmp, 0, strlen($tmp)-1);
  15.         }
  16.  
  17.         return $url;
  18. }
  19.  
  20. ?>