<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>iww</author_name>
  <author_url>https://blog.hatena.ne.jp/iww/</author_url>
  <blog_title>揮発性のメモ２</blog_title>
  <blog_url>https://iww.hateblo.jp/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>PHP: 比較演算子 - Manual 三項演算子の真ん中が省略されたやつは、最初のが真ならそれを代入、偽なら後ろの値を代入する。 初期化されてなかったら初期値代入、みたいなのに使えそう。でも使い勝手は悪いし なにより見た目が美しくないので 使うのは禁止にしておきたい。 &lt;? $a = 6; $b = 0; $c = $a ? $a : -1; // $a が真なので $a を代入 （ふつう） $d = $a ?: -1; // $a が真なので $a を代入 $e = $b ?: -1; // $b が偽なので -1 を代入 $f = $a&gt;0 ?: -1; // $a&gt;0 が真なので $a…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiww.hateblo.jp%2Fentry%2F20150717%2Fsankoenzanshi&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>2015-07-17 00:00:00</published>
  <title> 三項演算子の真ん中が省略されたやつ</title>
  <type>rich</type>
  <url>https://iww.hateblo.jp/entry/20150717/sankoenzanshi</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
