Advertisement
NozdrachevNN

task 51

Jul 20th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None | 0 0
  1. function dictionary($list, $word){
  2. $i=0;
  3. foreach ($word as $valueB) {
  4.         foreach ($list as $valueA) {
  5.             $s= similar_text ($valueB, $valueA);
  6.                 if ($i<$s) {
  7.                     $i=$valueB;
  8.                 }
  9.         }
  10. }
  11.  
  12. return ($i);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement