Duplication Problem

Discussion in 'PHP' started by enomsoft, Apr 14, 2008.

  1. #1
    I Want Solution

    Jst See This
    $var1="My Original name was is Fahan But My now name Is Fadz";
    $var2="My Original name is Fahan Buut My Pet name Is Fadz";


    I Want TO know in Persentage How many These Two Varible match
    in php Code PLease Help me Out

    PLease
     
    enomsoft, Apr 14, 2008 IP
  2. Oli3L

    Oli3L Active Member

    Messages:
    207
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    70
    #2
    Try this:
    
    <?php
    
    $var1="My Original name was is Fahan But My now name Is Fadz";
    $var2="My Original name is Fahan Buut My Pet name Is Fadz";
    similar_text($var1, $var2, $p);
    echo "Percent: $p%";
    ?>
    
    PHP:
     
    Oli3L, Apr 14, 2008 IP
  3. enomsoft

    enomsoft Peon

    Messages:
    128
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Sir YOu HAve SOlve MY Big Problem

    Really Thats
     
    enomsoft, Apr 15, 2008 IP