<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>scientre</author_name>
  <author_url>https://blog.hatena.ne.jp/scientre/</author_url>
  <blog_title>メモ用紙</blog_title>
  <blog_url>https://scientre.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>禁則処理つきはこちら。 PHPで文字列の折り返しと禁則処理 - メモ用紙 組み込み関数 mb_strimwidth を使ってシンプルに。欧文の単語の途中でもずばっと分割しちゃいます。 &lt;?php function ja_wordwrap($string, $n, $break = &quot;\n&quot;) { $a = array(); $lines = explode(&quot;\n&quot;, $string); foreach ($lines as $line) { $len = mb_strlen($line); if ($len == 0) { $a[] = ''; } $p = 0; while ($p &lt; $…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fscientre.hateblo.jp%2Fentry%2F20090518%2Fwordwrap&quot; title=&quot;PHPで文字列折り返し (シンプル版と参考) - メモ用紙&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>2009-05-18 00:00:03</published>
  <title>PHPで文字列折り返し (シンプル版と参考)</title>
  <type>rich</type>
  <url>https://scientre.hateblo.jp/entry/20090518/wordwrap</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
