<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>iww</author_name>
  <author_url>https://blog.hatena.ne.jp/iww/</author_url>
  <blog_title>揮発性のメモ２</blog_title>
  <blog_url>https://iww.hateblo.jp/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>ちょっとした一時的な使い捨てオブジェクトを作りたいとき、いちいちnewするのが面倒くさい。 &lt;? $o = new stdClass(); $o-&gt;hoge = &quot;Hello&quot;; $o-&gt;piyo = &quot;world&quot;; $o-&gt;fuga = 2019; $list[] = $o; みたいなコードだと何行もなってちょっとウザいのが、裏技を使うと1行になる &lt;? $list[] = (object)[&quot;hoge&quot;=&gt;&quot;Hello&quot;, &quot;piyo&quot;=&gt;&quot;world&quot;, &quot;fuga&quot;=&gt;2019]; まったく行儀が良いコードではないが、書き捨てコードになら実にちょうど良い</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiww.hateblo.jp%2Fentry%2F20190211%2FstdClass&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>2019-02-11 07:00:00</published>
  <title> PHPで、手っ取り早くオブジェクトを生成する</title>
  <type>rich</type>
  <url>https://iww.hateblo.jp/entry/20190211/stdClass</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
