daily pastebin goal
18%
SHARE
TWEET

Untitled

a guest Feb 23rd, 2010 6,737 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?
  2. $overwords=$_POST[overwords];
  3. $letters=$_POST[letters];
  4. if($_POST){
  5.     $t=$_POST[txt];
  6.     $t=preg_match_all("#([a-zA-Z]{".$letters.",})#is",$t,$f);
  7.     foreach($f[0] as $w){
  8.         $w=strtolower($w);
  9.         $all[$w]++;
  10.     }
  11.     foreach($all as $key=>$val){
  12.         if($val>$overwords){
  13.             echo $key.'<br>';
  14.         }
  15.     }
  16. }
  17.  
  18. ?><form method=post><textarea rows="20" cols="70" name="txt"></textarea><br>
  19.     <input type="text" name="overwords" value="count of includings"><br>
  20.     <input type="text" name="letters" value="letters more than.."><br>
  21.     <br>
  22. <input type=submit></form>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top