<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>beatdjam</author_name>
  <author_url>https://blog.hatena.ne.jp/beatdjam/</author_url>
  <blog_title>B-Teck!</blog_title>
  <blog_url>https://blog.beatdjam.com/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>多次元連想配列やオブジェクトを詰めた配列はusort関数でいい感じにソートする。 PHP: usort - Manual 多次元連想配列のソートをする場合 &lt;?php //連想配列でのソート $test = [[&quot;price&quot; =&gt; &quot;30&quot;, &quot;stock&quot; =&gt; &quot;100&quot;], [&quot;price&quot; =&gt; &quot;20&quot;, &quot;stock&quot; =&gt; &quot;120&quot;], [&quot;price&quot; =&gt; &quot;10&quot;, &quot;stock&quot; =&gt; &quot;115&quot;]]; //ソート usort($test, function ($a, $b) { return $a['price'] &lt; $b['price'] ? -1 : 1; /…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.beatdjam.com%2Fentry%2F2016%2F06%2F22%2F010107&quot; title=&quot;【PHP】連想配列とかオブジェクトのソート - B-Teck!&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>2016-06-22 01:01:07</published>
  <title>【PHP】連想配列とかオブジェクトのソート</title>
  <type>rich</type>
  <url>https://blog.beatdjam.com/entry/2016/06/22/010107</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
