{"id":226361,"date":"2020-12-20T00:54:10","date_gmt":"2020-12-19T16:54:10","guid":{"rendered":"http:\/\/4563.org\/?p=226361"},"modified":"2020-12-20T00:54:10","modified_gmt":"2020-12-19T16:54:10","slug":"%e6%b1%82%e9%97%ae%e4%b8%aaphp%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=226361","title":{"rendered":"\u6c42\u95ee\u4e2aphp\u95ee\u9898"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>weiki1998<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u6c42\u95ee\u4e2aphp\u95ee\u9898<\/h3>\n<p>  \t\t&lt;?php<\/p>\n<p>  function fa($a) {<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; return &#8217;00&#8217;;<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; exit;<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; if ($a == 0) {<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; } else {<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit;<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; }<br \/>  }<\/p>\n<p>  $a = 100;<\/p>\n<p>  if (fa($a)) {<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; echo &#8216;\u8fd8\u5728\u8fd0\u884c&#8217;;<br \/>  }<\/p>\n<p>  echo &#8216;0000000000000000000&#8217;;<\/p>\n<p>  \u5982\u4e0a\u8fd9\u4e9b\u4ee3\u7801\uff0c\u5982\u679c\u8fd0\u884c\uff0c\u4f1a\u6b63\u5e38\u5411\u4e0b\u6267\u884c\u5230000000\u8fd9\u91cc\uff1b<\/p>\n<p>  &lt;?php<\/p>\n<p>  function fa($a) {<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; echo &#8217;00&#8217;;<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; exit;<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; if ($a == 0) {<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; } else {<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit;<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; }<br \/>  }<\/p>\n<p>  $a = 100;<\/p>\n<p>  if (fa($a)) {<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; echo &#8216;\u8fd8\u5728\u8fd0\u884c&#8217;;<br \/>  }<\/p>\n<p>  echo &#8216;0000000000000000000&#8217;;<\/p>\n<p>  \u5982\u679c\u6539\u6210\u8fd9\u6837\uff0c\u5c31\u4e0d\u4f1a\u6267\u884c\u52300000\u8fd9\u91cc\u4e86<\/p>\n<p>  \u5c31\u4fee\u6539\u4e86 function fa($a)\u7684\u7b2c\u4e00\u53e5\uff0c\u4e00\u4e2a\u662freturn\u4e00\u4e2a\u662fecho<\/p>\n<p>  \u7136\u540e\u90fd\u7528\u4e86exit<\/p>\n<p>  \u7b2c\u4e00\u79cd\u60c5\u51b5\u662f\u5728\u51fd\u6570\u5185\u8d77\u4f5c\u7528\u4e86\uff0c\u4e0d\u4f1a\u5168\u5c40\u9000\u51fa\uff0c\u7b2c\u4e8c\u79cd\u60c5\u51b5\uff0c\u597d\u50cf\u5168\u5c40\u9000\u51fa\u4e86<\/p>\n<p>  \u4eca\u5929\u7a81\u7136\u60f3\u8d77\u6765\u8fd9\u4e2a\u95ee\u9898\uff0c\u539f\u7406\u662f\u5565  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>pi9<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\texit\u662f\u9000\u51fa\u6574\u4e2a\u7a0b\u5e8f\uff0creturn\u662f\u65b9\u6cd5\u8fd4\u56de\u8bed\u53e5<br \/>  \u7b2c\u4e00\u6b21\u7684\u65b9\u6cd5\u5728exit\u4e4b\u524d\u5c31return\u4e86\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>h20<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4f60\u53ef\u80fd\u9700\u8981\u8865\u4e60return\u7684\u4f5c\u7528\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>liuyangge<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u7b2c\u4e00\u4e2a\u51fd\u6570\u5185 return \u540e\u9762\u7684\u4ee3\u7801\u662f\u65e0\u6548\u7684\uff0c\u4e5f\u5c31\u662f\u8bf4exit\u5e76\u6ca1\u6709\u6267\u884c\u7b2c\u4e8c\u4e2a\u76f4\u63a5exit\u4e86 :lol:lol\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>weiki1998<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e86\u89e3\u4e86\uff0c\u8c22\u8c22\u5927\u5bb6\uff0c\u54c8\u54c8<br \/>  \u56f0\u60d1\u5df2\u4e45\u7684\u95ee\u9898\u54c8\u54c8<br \/>  \u611a\u949d\u4e86\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>zc035<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tPHP \u9047\u5230 exit \u540e\u4e0d\u4f1a\u518d\u6267\u884c\u540e\u9762\u4ee3\u7801\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>weiki1998 \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\/226361"}],"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=226361"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/226361\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=226361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=226361"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=226361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}