<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rightgo09</author_name>
  <author_url>https://blog.hatena.ne.jp/rightgo09/</author_url>
  <blog_title>Perl日記</blog_title>
  <blog_url>https://r9.hateblo.jp/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>関数の引数の挙動メモ。 デフォルト値 デフォルト値は、定数式である必要があり、 (例えば) 変数やクラスのメンバーであってはなりません。 http://php.net/manual/ja/functions.arguments.php#functions.arguments.default定数ならばよいということで、定数値は使える。 &lt;?php const FOO = &quot;foooooooo!&quot;; function hoge($str = FOO) { echo $str.&quot;\n&quot;; } hoge(); // foooooooo! 定数ではない式を入れることはできない。 &lt;?php functi…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fr9.hateblo.jp%2Fentry%2F2015%2F03%2F04%2F210246&quot; title=&quot;PHPの関数の引数メモ（デフォルト値の定数、タイプヒンティングのnull) - Perl日記&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>2015-03-04 21:02:46</published>
  <title>PHPの関数の引数メモ（デフォルト値の定数、タイプヒンティングのnull)</title>
  <type>rich</type>
  <url>https://r9.hateblo.jp/entry/2015/03/04/210246</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
