<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>brtRiver</author_name>
  <author_url>https://blog.hatena.ne.jp/brtRiver/</author_url>
  <blog_title>ぷぎがぽぎ</blog_title>
  <blog_url>https://brtriver.hatenadiary.org/</blog_url>
  <categories>
    <anon>php</anon>
  </categories>
  <description>1枚のPHPでGETパラメータの値をそのまま出力したりする場合、何も考えずに書くとこんな感じになります。 &lt;?php echo (isset($_GET['name']))? htmlspecialchars($_GET['name'], ENT_QUOTES, 'utf-8'): &quot;&quot; ?&gt; さすがに、毎回これを埋め込むのは嫌ですよね。 なぜなら、同じkey名を2回間違わずに書かなくてはなりませんし、なによりも長い。 なので、次の考えるのがヘルパー関数をつぎように用意することです。 &lt;?php function h_array_key($key, $array) { return isset…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbrtriver.hatenadiary.org%2Fentry%2F20121117%2F1353123773&quot; title=&quot; 配列のキーの存在チェック(isset)をしながらhtmlspecialcharsするのをちょっと読みやすくする - ぷぎがぽぎ&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-11-17 12:42:53</published>
  <title> 配列のキーの存在チェック(isset)をしながらhtmlspecialcharsするのをちょっと読みやすくする</title>
  <type>rich</type>
  <url>https://brtriver.hatenadiary.org/entry/20121117/1353123773</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
