PHP: similar_text - Manual PHPã§æåéã®è·é¢ã測ãé¢æ°ãsimilar_textãã便å©ã ç§ã¯ãã£ã¨ãã®é¢æ°ã®åå¨ãç¥ããªãã£ãã®ã§ãããsimilar_textã¨ããé¢æ°ãPHP4ããæ¨æºã§åå¨ããããã§ããã 使ãæ¹ã¯ç°¡åã§ãsimilar_text( æåå1 , æååï¼, é¡ä¼¼åº¦ ); ã®ããã«å®è¡ããã¨ããããããæåã®æ°ãè¿ãã¿ããã§ãã ä¾ãã°ããµã³ãã«ã³ã¼ããè¦ã¦ã¿ã¾ããã $words = array( 'psp', 'javascript', 'php', 'spot', 'twitter' ); $matches = array(); foreach ($words as $word) { $c = similar_text('phpspot', $word, $percent); echo 'phpspot 㨠'.$word.'
{{#tags}}- {{label}}
{{/tags}}