<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>beatdjam</author_name>
  <author_url>https://blog.hatena.ne.jp/beatdjam/</author_url>
  <blog_title>B-Teck!</blog_title>
  <blog_url>https://blog.beatdjam.com/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>2つの文字列から、長さの差も含めて差異のある文字数を取得するメソッド。 str_splitのマルチバイト対応版がないので、 &lt;?php preg_split(&quot;//u&quot;, $i_str1, -1, PREG_SPLIT_NO_EMPTY); で文字列を一文字ずつの配列にバラして、ループで比較する。 &lt;?php /** * 2つの文字列に差異が何文字あるかを取得 * * @access public * @param string $i_str1 文字列1 * @param string $i_str2 文字列2 * @return int $failCount 差異のあった文字数 */ fun…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.beatdjam.com%2Fentry%2F2016%2F03%2F22%2F201649&quot; title=&quot;【PHP】2つの文字列を比較して差異の数を取得する - B-Teck!&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-03-22 20:16:49</published>
  <title>【PHP】2つの文字列を比較して差異の数を取得する</title>
  <type>rich</type>
  <url>https://blog.beatdjam.com/entry/2016/03/22/201649</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
