<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tkmsaoi</author_name>
  <author_url>https://blog.hatena.ne.jp/tkmsaoi/</author_url>
  <blog_title>Blog, The</blog_title>
  <blog_url>https://tkmsaoi.hatenablog.com/</blog_url>
  <categories>
    <anon>php</anon>
  </categories>
  <description>メモ。 is_callable ってのがそれかなって思ったんですが、 PHP: is_callable - Manual これだと関数名の文字列とか array($obj, 'method') みたいな配列も true になるっぽい。 どうやら PHP の無名関数は PHP: 無名関数 - Manual 無名関数の実装には Closure クラスを使っています。 ってことらしいので、確実に無名関数を判定したい場合は、こうすればいいみたい。(継承を懸念したけど Closure は final なので大丈夫っぽい) is_object($obj) &amp;&amp; $obj instanceof Closur…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftkmsaoi.hatenablog.com%2Fentry%2F2013%2F07%2F27%2F201609&quot; title=&quot;PHP で無名関数であることを判定する - Blog, The&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-07-27 20:16:09</published>
  <title>PHP で無名関数であることを判定する</title>
  <type>rich</type>
  <url>https://tkmsaoi.hatenablog.com/entry/2013/07/27/201609</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
