{"title":"\u3010PHP\u3011\u9023\u60f3\u914d\u5217\u3068\u304b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30bd\u30fc\u30c8","version":"1.0","image_url":null,"blog_title":"B-Teck!","description":"\u591a\u6b21\u5143\u9023\u60f3\u914d\u5217\u3084\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8a70\u3081\u305f\u914d\u5217\u306fusort\u95a2\u6570\u3067\u3044\u3044\u611f\u3058\u306b\u30bd\u30fc\u30c8\u3059\u308b\u3002 PHP: usort - Manual \u591a\u6b21\u5143\u9023\u60f3\u914d\u5217\u306e\u30bd\u30fc\u30c8\u3092\u3059\u308b\u5834\u5408 <?php //\u9023\u60f3\u914d\u5217\u3067\u306e\u30bd\u30fc\u30c8 $test = [[\"price\" => \"30\", \"stock\" => \"100\"], [\"price\" => \"20\", \"stock\" => \"120\"], [\"price\" => \"10\", \"stock\" => \"115\"]]; //\u30bd\u30fc\u30c8 usort($test, function ($a, $b) { return $a['price'] < $b['price'] ? -1 : 1; /\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.beatdjam.com%2Fentry%2F2016%2F06%2F22%2F010107\" title=\"\u3010PHP\u3011\u9023\u60f3\u914d\u5217\u3068\u304b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30bd\u30fc\u30c8 - B-Teck!\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://blog.beatdjam.com/entry/2016/06/22/010107","width":"100%","categories":["PHP"],"height":"190","blog_url":"https://blog.beatdjam.com/","author_url":"https://blog.hatena.ne.jp/beatdjam/","provider_name":"Hatena Blog","type":"rich","author_name":"beatdjam","published":"2016-06-22 01:01:07","provider_url":"https://hatena.blog"}