{"id":517493,"date":"2021-07-17T13:31:55","date_gmt":"2021-07-17T05:31:55","guid":{"rendered":"http:\/\/4563.org\/?p=517493"},"modified":"2021-07-17T13:31:55","modified_gmt":"2021-07-17T05:31:55","slug":"%e5%87%a0%e4%b8%aa%e7%bb%8f%e5%b8%b8%e7%94%a8%e5%88%b0%e7%9a%84php%e7%bc%a9%e5%86%99","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=517493","title":{"rendered":"\u51e0\u4e2a\u7ecf\u5e38\u7528\u5230\u7684PHP\u7f29\u5199"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>BMW325520<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u51e0\u4e2a\u7ecf\u5e38\u7528\u5230\u7684PHP\u7f29\u5199<\/h3>\n<p>  \t\tin_array()\u4e0d\u533a\u5206\u5927\u5c0f\u5199<br \/>  in_array(strtolower($val),array_map(&#8216;strtolower&#8217;,$array)<\/p>\n<p>  php\u6570\u7ec4\u6309\u5176\u4e2d\u4e00\u4e2a\u503c\u6392\u5e8f<br \/>  $tmp_arr = array_column($old_array, &#8216;sort_id&#8217;);<br \/>  array_multisort($tmp_arr, SORT_DESC, $new_array);<\/p>\n<p>  glob\u6392\u5e8f<br \/>  $dirs = glob(&quot;*&quot;);<br \/>  \/\/ \u65b0\u7684\u5728\u524d\u9762<br \/>  usort($dirs, create_function(&#8216;$a,$b&#8217;, &#8216;return filemtime($b) &#8211; filemtime($a);&#8217;));<br \/>  \/\/ \u4f53\u79ef\u6700\u5927\u7684\u5728\u524d<br \/>  usort($files, create_function(&#8216;$a,$b&#8217;, &#8216;return filesize($b) &#8211; filesize($a);&#8217;));  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>optimism<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u597d\u7684 \u611f\u8c22\u5206\u4eab\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>BMW325520 \u5927\u4f6c\u6709\u8bdd\u8bf4 :&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/517493"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=517493"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/517493\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=517493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=517493"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=517493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}