<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>s_hiiragi</author_name>
  <author_url>https://blog.hatena.ne.jp/s_hiiragi/</author_url>
  <blog_title>s_hiiragiの活動メモ</blog_title>
  <blog_url>https://s-hiiragi.hatenadiary.org/</blog_url>
  <categories>
    <anon>PHP</anon>
    <anon>オブジェクト指向</anon>
  </categories>
  <description>追記(2010/04/18)： new演算子で生成したインスタンスを一旦変数に入れないといけないのは、どうやらPHP4など古いバージョンの場合らしい。PHP5では直接書けるぽい。 new演算子で生成したインスタンスは、一度変数に代入するなどしないと、メソッドが呼び出せない。 次の例はエラーになる(PHP 5.2.9-2)。 &lt;?php class Hoge{ function __construct($a, $b){ $this-&gt;num = $a * $b; } function show(){ echo $this-&gt;num.'&lt;br&gt;'; } private $num; } new Ho…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fs-hiiragi.hatenadiary.org%2Fentry%2F20100116%2F1263646704&quot; title=&quot;PHPのnewで生成したインスタンスのメソッド呼び出しについて - s_hiiragiの活動メモ&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>2010-01-16 21:58:24</published>
  <title>PHPのnewで生成したインスタンスのメソッド呼び出しについて</title>
  <type>rich</type>
  <url>https://s-hiiragi.hatenadiary.org/entry/20100116/1263646704</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
