<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>AJYA</author_name>
  <author_url>https://blog.hatena.ne.jp/AJYA/</author_url>
  <blog_title>ソフトウェア開発者の日常</blog_title>
  <blog_url>https://ajya.hatenablog.jp/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>Webの登録システムで、英文を入力して登録する場合があります。 登録すると、登録内容を通知するメールを送信します。英文を登録した場合、メールに記載する英文の改行の位置は、単語の途中にしないで欲しい、と要望がありました。 自力で実装する場合 単語の区切りとして、スペース、カンマ、ピリオドが考えられます。 スペース、カンマ、ピリオドで区切って、配列に文字列を入れます。 配列に入れた文字列を、1個目から取り出し、取り出した文字列を、テンポラリ変数で連結します。 テンポラリ変数での文字列の長さが、規定値より短ければ、テンポラリ変数から出力変数にコピーします。 配列から文字列を取り出し、テンポラリ変数に…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fajya.hatenablog.jp%2Fentry%2F2021%2F07%2F16%2F235800&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>https://cdn-ak.f.st-hatena.com/images/fotolife/A/AJYA/20210716/20210716235631.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-07-16 23:58:00</published>
  <title>PHP：英語の文字列を適度な文字数で改行したい場合、単語の途中で改行させない方法</title>
  <type>rich</type>
  <url>https://ajya.hatenablog.jp/entry/2021/07/16/235800</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
