{"id":528334,"date":"2021-08-23T06:15:06","date_gmt":"2021-08-22T22:15:06","guid":{"rendered":"http:\/\/4563.org\/?p=528334"},"modified":"2021-08-23T06:15:06","modified_gmt":"2021-08-22T22:15:06","slug":"%e8%af%b7%e6%95%99%e4%b8%aaphp%e9%97%ae%e9%a2%98-2","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=528334","title":{"rendered":"\u8bf7\u6559\u4e2aphp\u95ee\u9898"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>\u98ce\u7b5d\u4e0d\u4f1a\u98de<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u8bf7\u6559\u4e2aphp\u95ee\u9898<\/h3>\n<p>  \t\t\u6709\u51e0\u6bb5\u4ee3\u7801\uff0c\u60f3\u968f\u673a\u663e\u793a\u5176\u4e2d\u7684\u4e00\u90e8\u5206<br \/>  \u6bd4\u5982<br \/>  &lt;p style=&quot;1&quot;&gt;\u7b2c\u4e00\u884c&lt;\/p&gt;<br \/>  &lt;p style=&quot;2&quot;&gt;\u7b2c2\u884c&lt;\/p&gt;<br \/>  &lt;p style=&quot;3&quot;&gt;\u7b2c3\u884c&lt;\/p&gt;<br \/>  &#8230;&#8230;<br \/>  &lt;p style=&quot;n&quot;&gt;\u7b2cn\u884c&lt;\/p&gt;<br \/>  \u60f3\u7528php\u968f\u673a\u622a\u53d6\u51e0\u884c<br \/>  \u6bd4\u5982rando=5<br \/>  \u7136\u540e\u5c31\u968f\u673a\u4ecen\u884c\u91cc\u622a\u53d65\u884c\u8fd4\u56de  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>alpha<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t$codes = array(<br \/>  &#8216;&lt;p style=&quot;1&quot;&gt;\u7b2c1\u884c&lt;\/p&gt;&#8217;,<br \/>  &#8216;&lt;p style=&quot;2&quot;&gt;\u7b2c2\u884c&lt;\/p&gt;&#8217;,<br \/>  &#8216;&lt;p style=&quot;3&quot;&gt;\u7b2c3\u884c&lt;\/p&gt;&#8217;,<br \/>  &#8216;&lt;p style=&quot;n&quot;&gt;\u7b2cn\u884c&lt;\/p&gt;&#8217;,<br \/>  );<\/p>\n<p>  $random_keys = array_rand($codes, 3);<br \/>  \/\/3\u662f\u968f\u673a\u53d63\u884c<\/p>\n<p>  foreach($random_keys as $i) {<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; echo $codes[$i];<br \/>  }\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u98ce\u7b5d\u4e0d\u4f1a\u98de<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\talpha \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-8-22 18:52<\/p>\n<p> \u8c22\u8c22\u5927\u725b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>mmc199<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u7ed1\u5b9a\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u98ce\u7b5d\u4e0d\u4f1a\u98de \u5927\u4f6c\u6709\u8bdd\u8bf4 : \u8bf7\u6559\u4e2a&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\/528334"}],"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=528334"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/528334\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=528334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=528334"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=528334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}