{"id":47,"date":"2020-09-28T10:08:54","date_gmt":"2020-09-28T02:08:54","guid":{"rendered":"http:\/\/9iwd.top\/?p=47"},"modified":"2020-09-28T10:08:54","modified_gmt":"2020-09-28T02:08:54","slug":"no-13-%e6%9b%bf%e4%bb%a3%e8%af%ad%e6%b3%95","status":"publish","type":"post","link":"http:\/\/9iwd.top\/?p=47","title":{"rendered":"No.13 \u66ff\u4ee3\u8bed\u6cd5"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>&lt;!--\t\u66ff\u4ee3\u8bed\u6cd5\n\u6d41\u7a0b\u63a7\u5236\u66ff\u4ee3\u8bed\u6cd5\uff1a\u5206\u652f\u548c\u5faa\u73af\u7ed3\u6784\u7684\u66ff\u4ee3\u8bed\u6cd5\n\nPHP \u672c\u8eab\u662f\u53ef\u4ee5\u5d4c\u5957\u7684 HTML \u4e2d\u7684\u811a\u672c\u8bed\u8a00\uff0c\u9700\u8981\u5728HTML\u4e2d\u4e66\u5199\u4e00\u4e9b\u5173\u4e8e\u5224\u65ad\u6216\u8005\u5faa\u73af\u7684\u7ed3\u6784\u8bed\u6cd5\uff0c\n\u5fc5\u987b\u7b26\u5408 PHP \u6807\u7b7e\u89c4\u8303\uff0c\u9700\u8981 HTML \u4e0e PHP \u8fdb\u884c\u6df7\u642d\uff0c\u5982\u679c\u4f7f\u7528\u539f\u59cb\u7684 PHP \u4ee3\u7801\u90a3\u4e48\u4f1a\u975e\u5e38\u4e0d\u7f8e\u89c2\n\n\u793a\u8303\uff1a\u6253\u5370\u4e00\u4e2a\u4e5d\u4e5d\u4e58\u6cd5\u8868\uff0c\u4f7f\u7528\u8868\u683c\n-->\n&lt;table border=1>\n\t&lt;?php for($i = 1;$i &lt; 10;$i++){?>\n\t\t&lt;tr>\n\t\t\t&lt;?php for($j = 1;$j &lt;= $i;$j++){?>\n\t\t\t\t&lt;td>\n\t\t\t\t\t&lt;?php echo $j.' * '.$i.' = '.$j*$i?>\n\t\t\t\t&lt;\/td>\n\t\t\t&lt;?php };?>\n\t\t&lt;\/tr>\n\t&lt;?php };?>\n&lt;\/table><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!--\t\u66ff\u4ee3\u8bed\u6cd5\u4f7f\u7528\n\u5728 PHP \u4e66\u5199\u5230 HTML \u4e2d\u7684\u8fd9\u5199\u5927\u62ec\u53f7{}\u975e\u5e38\u4e0d\u7f8e\u89c2\uff0c\u6240\u4ee5 PHP \u63d0\u4f9b\u4e86\u4e00\u79cd\u66ff\u4ee3\u673a\u5236\uff0c\u8ba9\u5176\u53ef\u4ee5\u4e0d\u7528\u4e66\u5199\u5927\u62ec\u53f7\uff1a\nPHP \u4e2d\u5177\u4f53\u6709\u54ea\u4e9b\u66ff\u4ee3\u8bed\u6cd5\u5462\uff1fPHP \u5e94\u8be5\u5728 HTML \u4e2d\u53ea\u505a\u6570\u636e\u8f93\u51fa\uff0c\u8f93\u51fa\u901a\u5e38\u4f34\u6709\u6761\u4ef6\u5224\u65ad\u548c\u5faa\u73af\u64cd\u4f5c\uff0c\u56e0\u6b64 PHP\n\u63d0\u4f9b\u4e86\u5bf9\u5e94\u5206\u652f\u7ed3\u6784\u548c\u5faa\u73af\u7ed3\u6784\u7684\u66ff\u4ee3\u8bed\u6cd5\uff1a\u5168\u90e8\u5bf9\u5e94\u7684\u4e00\u4e2a\u6a21\u5f0f\uff1a\n\u5de6\u5927\u62ec\u53f7{\u4f7f\u7528:\u4ee3\u66ff\n\u53f3\u5927\u62ec\u53f7}\u4f7f\u7528end+\u5bf9\u5e94\u7684\u8d77\u59cb\u6807\u8bb0\u4ee3\u66ff\nif(){\t\t==>\t\tif():\n}\t\t\t==>\t\tendif;\n\t\nfor(;;){\t==>\t\tfor(;;):\n};\t\t\t==>\t\tendfor;\n\nwhile(){\t==>\t\twhile():\n}\t\t\t==>\t\tendwhile;\n...\u7b49\u7b49\n-->\n&lt;table border=1>\n\t&lt;?php for($i = 1;$i &lt; 10;$i++):?>\n\t\t&lt;tr>\n\t\t\t&lt;?php for($j = 1;$j &lt;= $i;$j++):?>\n\t\t\t\t&lt;td>\n\t\t\t\t\t&lt;?php echo $j.' * '.$i.' = '.$j*$i?>\n\t\t\t\t&lt;\/td>\n\t\t\t&lt;?php endfor;?>\n\t\t&lt;\/tr>\n\t&lt;?php endfor;?>\n&lt;\/table>\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"_links":{"self":[{"href":"http:\/\/9iwd.top\/index.php?rest_route=\/wp\/v2\/posts\/47"}],"collection":[{"href":"http:\/\/9iwd.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/9iwd.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/9iwd.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/9iwd.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=47"}],"version-history":[{"count":0,"href":"http:\/\/9iwd.top\/index.php?rest_route=\/wp\/v2\/posts\/47\/revisions"}],"wp:attachment":[{"href":"http:\/\/9iwd.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/9iwd.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/9iwd.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}