Guest User

Untitled

a guest
Feb 23rd, 2010
6,991
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