<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gallu</author_name>
  <author_url>https://blog.hatena.ne.jp/gallu/</author_url>
  <blog_title>がるの健忘録</blog_title>
  <blog_url>https://gallu.hatenadiary.jp/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>典型的には「(第一種)ホワイトリスト*1」の実装でありがちなのですが。 declare(strict_types=1); $white_list = [ 'hoge', 'foo', 'bar', 'baz', 'qux', ]; // $input = 'bar'; // if (true === in_array($input, $white_list, true)) { echo &quot;{$input} is in \n&quot;; } else { echo &quot;{$input} is NOT in \n&quot;; }こんな風に書く事が多いと思うんですよね、多分。ただ、おいちゃんはこんな風に書きます。 d…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgallu.hatenadiary.jp%2Fentry%2F2020%2F10%2F08%2F162622&quot; title=&quot;ちょっとした小技……の背景 - がるの健忘録&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>2020-10-08 16:26:22</published>
  <title>ちょっとした小技……の背景</title>
  <type>rich</type>
  <url>https://gallu.hatenadiary.jp/entry/2020/10/08/162622</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
