Activity Stream
701 MEMBERS
1697 ONLINE
Subscribe to our Newsletter BlackHatKings On Twitter BlackHatKings On Facebook BlackHatKings On Google+
Results 1 to 2 of 2

Threaded View

Previous Post Previous Post   Next Post Next Post
  1.     
    #2
    Kevin's Avatar



    Website's:
    BlackHatKings.com
    You can also try below method

    The following function will return a SEO friendly URL using a supplied string.

    PHP Code: 
        <?php
         
        
    function seo($string){
          
    $string preg_replace("`\[.*\]`U","",$string);
          
    $string preg_replace('`&(amp;)?#?[a-z0-9]+;`i','-',$string);
          
    $string preg_replace"`&([a-z])(acute|uml|circ|grave|ring|cedil|slash|tilde|caron|lig|quot|rsquo);`i","\\1"$string );
          
    $string preg_replace( array("`[^a-z0-9]`i","`[-]+`") , "-"$string);
          
    $string htmlentities($stringENT_COMPAT'utf-8');return strtolower(trim($string'-'));
        }
         
        
    ?>

  2. The Following 1 Users Say Thank You to Kevin For This Useful Post:
    [ Click to Expand ]

    BHK (21st Sep 2015)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

User Tag List

Tags for this Thread

BE SOCIAL