<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shigemk2</author_name>
  <author_url>https://blog.hatena.ne.jp/shigemk2/</author_url>
  <blog_title>by shigemk2</blog_title>
  <blog_url>https://www.shigemk2.com/</blog_url>
  <categories>
    <anon>php</anon>
  </categories>
  <description>関数のデフォルト値の設定 - by shigemk2 あまりにも酷いエントリを書いてしまったので、 訂正します。ただし、デフォルト値は、定数式である必要があり、 (例えば) 変数やクラスのメンバーであってはならない。単純に入力する引数の数が足りないだけ。 また、オプション引数は、最後の引数にすべきである。 また、&quot;acidophilus&quot; が定数なので、この関数定義は正しい。 &lt;?php function makeyogurt($flavour, $type = &quot;acidophilus&quot;) { return &quot;Making a bowl of $type $flavour.\n&quot;; } ec…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F20120206%2F1328516969&quot; title=&quot;関数のデフォルト値の設定 改 - by shigemk2&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>2012-02-06 17:29:29</published>
  <title>関数のデフォルト値の設定 改</title>
  <type>rich</type>
  <url>https://www.shigemk2.com/entry/20120206/1328516969</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
