{"id":334,"date":"2018-02-27T01:14:31","date_gmt":"2018-02-26T16:14:31","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=334"},"modified":"2018-02-27T01:14:31","modified_gmt":"2018-02-26T16:14:31","slug":"%e3%83%86%e3%82%ad%e3%82%b9%e3%83%88%e3%81%ae%e9%a1%9e%e4%bc%bc%e5%ba%a6%e3%82%92%e8%a8%88%e7%ae%97%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95%e3%82%92%e8%80%83%e3%81%88%e3%81%a6%e3%81%bf%e3%81%9f","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=334","title":{"rendered":"\u30c6\u30ad\u30b9\u30c8\u306e\u985e\u4f3c\u5ea6\u3092\u8a08\u7b97\u3059\u308b\u65b9\u6cd5\u3092\u8003\u3048\u3066\u307f\u305f"},"content":{"rendered":"<p>PHP\u3067\u306f\u3001\uff12\u3064\u306e\u6587\u5b57\u5217\u304c\u3069\u308c\u3060\u3051\u4f3c\u3066\u3044\u308b\u304b\u3092\u8a08\u7b97\u3059\u308b\u65b9\u6cd5\u3068\u3057\u3066\u3001\u4ee5\u4e0b\uff12\u3064\u306e\u6a19\u6e96\u95a2\u6570\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>similar_text()<\/strong><\/li>\n<li><strong>levenshtein()<\/strong><\/li>\n<\/ul>\n<p>\u3053\u308c\u3089\u306f\u7cbe\u5ea6\u3082\u9ad8\u3044\u306e\u3067\u3001\u3055\u3059\u304c\u306fPHP\uff01\u30de\u30a4\u30ca\u30fc\u306a\u5834\u6240\u306b\u307e\u3067\u6a19\u6e96\u95a2\u6570\u3092\u7528\u610f\u3057\u3066\u304f\u308c\u3066\u308b\u306a\u3001\u3068\u611f\u3058\u3066\u3044\u305f\u3093\u3067\u3059\u304c\u3001\u3084\u306f\u308a\u305d\u3053\u306f\u6c4e\u7528\u7684\u306a\u5b9f\u88c5\u3092\u3057\u3066\u3044\u308b\u304b\u3089\u304b\u3001\u5168\u3066\u306e\u72b6\u6cc1\u3067\u3082\u7cbe\u5ea6\u304c\u9ad8\u3044\u304b\u3068\u8a00\u3046\u3068\u305d\u3046\u3067\u3082\u306a\u3044\u5834\u5408\u3082\u3042\u308b\u305f\u3081\u3001\u4eca\u56de\u72ec\u81ea\u3067\u30c6\u30ad\u30b9\u30c8\u306e\u985e\u4f3c\u8a08\u7b97\u65b9\u6cd5\u3092\u8003\u3048\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u985e\u4f3c\u5ea6\u3092\u8a08\u7b97\u3059\u308b\u74b0\u5883<\/p>\n<p><strong>\u6587\u5b57\u5217\uff11\uff08\u691c\u7d22\u6587\u5b57\u5217\uff09\uff1a<\/strong> ABCDEF<br \/>\n<strong>\u6587\u5b57\u5217\uff12\uff08\u30aa\u30ea\u30b8\u30ca\u30eb\u6587\u5b57\u5217\uff09\uff1a<\/strong> ABXDEF<\/p>\n<h1>\uff11\uff0e\u8003\u3048\u65b9<\/h1>\n<p>\u3053\u306e\u65b9\u6cd5\u3067\u306f\u3001\u300c<strong>\u3044\u304b\u306b\u9577\u3044\u6587\u5b57\u5217\u304c\u30de\u30c3\u30c1\u3059\u308b\u304b<\/strong>\u300d\u3068\u3044\u3046\u8003\u3048\u65b9\u304c\u30d9\u30fc\u30b9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h1>\uff12\uff0e\u5b9f\u969b\u306e\u8a08\u7b97\u624b\u9806<\/h1>\n<h2>\uff11\uff0e\u3042\u308a\u3046\u308b\u5168\u3066\u306e\u6587\u5b57\u5217\u3092\u5207\u308a\u51fa\u3059<\/h2>\n<p>\u307e\u305a\u691c\u7d22\u6587\u5b57\u5217\u304b\u3089\u3001\u3042\u308a\u3046\u308b\u9650\u308a\u306e\u5206\u5272\u6587\u5b57\u5217\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n<p>A<br \/>\nAB<br \/>\nABC<br \/>\nABCD<br \/>\nABCDE<br \/>\nABCDEF<br \/>\nB<br \/>\nBC<br \/>\nBCD<br \/>\nBCDE<br \/>\nBCDEF<br \/>\nC<br \/>\nCD<br \/>\nCDE<br \/>\nCDEF<br \/>\nD<br \/>\nDE<br \/>\nDEF<br \/>\nE<br \/>\nEF<br \/>\nF<\/p>\n<p>\u305d\u3057\u3066\u3001\u3053\u306e\u4e2d\u3067<span style=\"text-decoration: underline;\">\u4e00\u756a\u9577\u3044\u6587\u5b57\u5217\u304b\u3089\u9806\u306b\u3082\u3046\u3072\u3068\u3064\u306e\u6587\u5b57\u5217\u3092\u6bd4\u8f03<\/span>\u3057\u3066\u3044\u304d\u3001\u30de\u30c3\u30c1\u3057\u3066\u3044\u305f\u3089\u985e\u4f3c\u30dd\u30a4\u30f3\u30c8\u3092\u52a0\u7b97\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u3067\u3001\u985e\u4f3c\u30dd\u30a4\u30f3\u30c8\u306f\u6bd4\u8f03\u304c\u3064\u304d\u3084\u3059\u3044\u3088\u3046\u306b\u6a19\u6e96\u504f\u5dee\u306e\u3088\u3046\u306b\uff12\u4e57\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001<\/p>\n<p>\u6587\u5b57\u5217\u300cABC\u300d\u304c\u30de\u30c3\u30c1\u3057\u3066\u3044\u305f\u3089\u3001\u6587\u5b57\u5217\u306e\u9577\u3055\u300c\uff13\u300d\u306e\uff12\u4e57\u3001\u3064\u307e\u308a\uff19\u30dd\u30a4\u30f3\u30c8\u304c\u52a0\u7b97\u3055\u308c\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u306a\u305c\u9577\u3044\u6587\u5b57\u5217\u304b\u3089\u9806\u306b\u3057\u305f\u304b\u3068\u3044\u3046\u3068\u3001\u533a\u5207\u3089\u308c\u305f\u6587\u5b57\u304c\u30de\u30c3\u30c1\u3059\u308b\u5ea6\u306b\u866b\u98df\u3044\u306e\u3088\u3046\u306b\u5143\u306e\u6587\u5b57\u5217\u304b\u3089\u524a\u9664\u3057\u3066\u3044\u304f\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3002\uff08\u3064\u307e\u308a\u91cd\u8907\u3057\u305f\u30de\u30c3\u30c1\u3092\u306a\u304f\u3059\u305f\u3081\u3067\u3059\u3002\uff09<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u300c\u6771\u4eac\u90fd\u845b\u98fe\u533a\u300d\u3068\u3044\u3046\u30aa\u30ea\u30b8\u30ca\u30eb\u6587\u5b57\u5217\u304c\u3042\u3063\u3066\u3001\u3082\u3057\u300c\u6771\u4eac\u90fd\u3000\u4eac\u90fd\u300d\u3068\u3044\u3046\uff12\u3064\u306e\u30ad\u30fc\u30ef\u30fc\u30c9\u3067\u691c\u7d22\u3055\u308c\u3066\u3057\u307e\u3063\u305f\u5834\u5408\u3001\u91cd\u8907\u3092\u306a\u304f\u3057\u3066\u3044\u306a\u3044\u3068\u3001<\/p>\n<p>\uff11\uff0e<strong>\u6771\u4eac\u90fd<\/strong>\u3067\u30de\u30c3\u30c1\uff08\uff13\u6587\u5b57\uff1d\uff19\u30dd\u30a4\u30f3\u30c8\u52a0\u7b97\uff09<br \/>\n\uff12\uff0e<strong>\u4eac\u90fd<\/strong>\u3067\u3082\u30de\u30c3\u30c1\uff08\uff12\u6587\u5b57\uff1d\uff14\u30dd\u30a4\u30f3\u30c8\u52a0\u7b97\uff09<\/p>\n<p>\u3068\u306a\u3063\u3066\u3057\u307e\u3046\u304b\u3089\u3002<\/p>\n<p>\u3064\u307e\u308a\u6d41\u308c\u3068\u3057\u3066\u306f\u3001\u30de\u30c3\u30c1\u3059\u308b\u5ea6\u306b\u30aa\u30ea\u30b8\u30ca\u30eb\u6587\u5b57\u5217\u304c\u30c6\u30ed\u30e1\u30a2\u306e\u3088\u3046\u306b\u77ed\u304f\u306a\u3063\u3066\u3044\u304f\u30a4\u30e1\u30fc\u30b8\u3067\u3059\u306d\u3002<\/p>\n<p>\uff11\uff0e\u6771\u4eac\u90fd\u3067\u30de\u30c3\u30c1\uff08\uff13\u6587\u5b57\uff1d\uff19\u30dd\u30a4\u30f3\u30c8\u52a0\u7b97\u3002\u4eca\u5f8c\u306e\u6bd4\u8f03\u6587\u5b57\u5217\u306f\u3001\u300c\u6771\u4eac\u90fd\u300d\u3092\u9664\u3044\u305f\u3001\u300c\u845b\u98fe\u533a\u300d\u3060\u3051\uff09<br \/>\n\uff12\uff0e\u4eac\u90fd\u306f\u30de\u30c3\u30c1\u3057\u306a\u3044\u3002\u306a\u305c\u306a\u3089\u300c\u845b\u98fe\u533a\u300d\u3057\u304b\u6b8b\u3063\u3066\u3044\u306a\u3044\u304b\u3089\uff08\uff10\u6587\u5b57\uff1d\uff10\u30dd\u30a4\u30f3\u30c8\u52a0\u7b97\uff09<\/p>\n<p>\u3053\u308c\u3067\u3084\u3063\u3066\u307f\u308b\u3068\u3042\u308b\u7a0b\u5ea6\u306e\u7cbe\u5ea6\u304c\u3067\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u306a\u304b\u306a\u304b\u3046\u307e\u304f\u3044\u3051\u305f\u306e\u304b\u306a\u30fc\u3001\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u3053\u308c\u306b\u3082\u5f31\u70b9\u304c\u3042\u3063\u3066\u3001\u3042\u307e\u308a\u306b\u77ed\u3044\u691c\u7d22\u6587\u5b57\u5217\u3060\u3068\u30de\u30c3\u30c1\u3057\u306b\u304f\u3044\u3093\u3067\u3059\u3002\uff08\u3068\u306f\u3044\u3063\u3066\u3082\u3001\u305d\u308c\u3060\u3068\u6a19\u6e96\u95a2\u6570\u306e\u65b9\u3067\u3082\u307b\u307c\u540c\u3058\u306a\u3093\u3067\u3059\u3051\u3069\u306d\uff09<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u77ed\u3044\u3067\u3059\u3051\u3069\u5099\u5fd8\u9332\u7684\u306b\u30a2\u30a4\u30c7\u30a2\u3092\u66f8\u3044\u3066\u304a\u304f\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\n\uff08\u6b8b\u5ff5\u306a\u304c\u3089\u307e\u3060\u30c6\u30b9\u30c8\u6bb5\u968e\u306a\u306e\u3067\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u306a\u3069\u306b\u306f\u3057\u3066\u307e\u305b\u3093\u3002\u4eca\u5f8c\u6642\u9593\u304c\u3067\u304d\u305f\u3089\u8003\u3048\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\uff09<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP\u3067\u306f\u3001\uff12\u3064\u306e\u6587\u5b57\u5217\u304c\u3069\u308c\u3060\u3051\u4f3c\u3066\u3044\u308b\u304b\u3092\u8a08\u7b97\u3059\u308b\u65b9\u6cd5\u3068\u3057\u3066\u3001\u4ee5\u4e0b\uff12\u3064\u306e\u6a19\u6e96\u95a2\u6570\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002 similar_text() levenshtein( &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=334\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u30c6\u30ad\u30b9\u30c8\u306e\u985e\u4f3c\u5ea6\u3092\u8a08\u7b97\u3059\u308b\u65b9\u6cd5\u3092\u8003\u3048\u3066\u307f\u305f&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":337,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[45],"class_list":["post-334","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-2","tag-45"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/334","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=334"}],"version-history":[{"count":2,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/334\/revisions"}],"predecessor-version":[{"id":336,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/334\/revisions\/336"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/337"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}