<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pospome</author_name>
  <author_url>https://blog.hatena.ne.jp/pospome/</author_url>
  <blog_title>pospomeのプログラミング日記</blog_title>
  <blog_url>https://www.pospome.work/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>「タイプヒンティング」とは関数の引数に型を指定できる機能。PHPは型が動的に決まるし、 暗黙の型変換とか無理やり動かそうとする感があって バグの温床になりやすい気がする。 気をつければいいといえばそうなんだけど・・・。使い方は簡単で、他の静的型付け言語みたいに 引数名の前に型を宣言するだけ。 function test (TestClass $test_class){ } function test (array $ar) { } ただ、使えるのは配列、クラス、インターフェースのみ。 int とか string は指定できない。まあ、機会があれば使ってみるかな・・・。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.pospome.work%2Fentry%2F20130205%2F1360071800&quot; title=&quot;タイプヒンティング - pospomeのプログラミング日記&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>2013-02-05 22:43:20</published>
  <title>タイプヒンティング</title>
  <type>rich</type>
  <url>https://www.pospome.work/entry/20130205/1360071800</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
