<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fkichi</author_name>
  <author_url>https://blog.hatena.ne.jp/fkichi/</author_url>
  <blog_title>F吉の蓄積</blog_title>
  <blog_url>https://fkichi.hateblo.jp/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>a.txt http://abc.com/def.jpghttp://abc.com/ghi.jpghttp://abc.com/jkl.jpg このテキストファイルを b.json [ &quot;http://abc.com/def.jpg&quot;, &quot;http://abc.com/ghi.jpg&quot;, &quot;http://abc.com/jkl.jpg&quot; ] のようにJSON形式に変換する方法。テキストを一度配列にいれてJSONにエンコードする。 ①テキストを配列に入れる $image_array = array(); //配列 $textfile = file_get_contents('a.txt'); …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffkichi.hateblo.jp%2Fentry%2F2017%2F03%2F03%2F205246&quot; title=&quot;テキストファイルからJSON形式への変換 - F吉の蓄積&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>2017-03-03 20:52:46</published>
  <title>テキストファイルからJSON形式への変換</title>
  <type>rich</type>
  <url>https://fkichi.hateblo.jp/entry/2017/03/03/205246</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
