<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kunikiya</author_name>
  <author_url>https://blog.hatena.ne.jp/kunikiya/</author_url>
  <blog_title>やきにくとくにきや</blog_title>
  <blog_url>https://kunikiya.hatenadiary.org/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>業務だとほとんどないが競技プログラミングとかしてると、文字列を一文字ずつ処理したい時が結構ある。 やり方は色々あると思うが、個人的にしっくりくる方法を二つ。方法１ &lt;?php $str = &quot;string&quot;; for($i = 0; $i &lt; strlen($str); $i++) { echo $str[$i].&quot;\n&quot;; }出力結果 s t r i n g 方法２ &lt;?php $str = &quot;string&quot;; foreach(str_split($str) as $value){ echo $value.&quot;\n&quot;; }出力結果 s t r i n g こういった単純なモノはC言語の方がやり…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkunikiya.hatenadiary.org%2Fentry%2F20121124%2F1353769459&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>2012-11-24 00:04:19</published>
  <title>PHPで文字列を一文字ずつ処理する</title>
  <type>rich</type>
  <url>https://kunikiya.hatenadiary.org/entry/20121124/1353769459</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
