{"id":20566,"date":"2024-11-19T15:30:50","date_gmt":"2024-11-19T07:30:50","guid":{"rendered":"https:\/\/fwq.ai\/blog\/20566\/"},"modified":"2024-11-19T15:30:50","modified_gmt":"2024-11-19T07:30:50","slug":"sublime%e6%80%8e%e4%b9%88%e7%94%a8php%e8%be%93%e5%87%ba%e5%9b%9b%e8%a1%8chellowold","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/20566\/","title":{"rendered":"sublime\u600e\u4e48\u7528php\u8f93\u51fa\u56db\u884cHellowold"},"content":{"rendered":"<blockquote><p>\n  \u4f7f\u7528 sublime text \u8f93\u51fa &#8220;hello world&#8221; \u53ea\u9700\u56db\u6b65\uff1a\u521b\u5efa\u65b0\u6587\u4ef6\u3001\u8f93\u5165 php \u4ee3\u7801\u3001\u4fdd\u5b58\u6587\u4ef6\u5e76\u8fd0\u884c\u4ee3\u7801\u3002\u5373\u53ef\u5728\u8f93\u51fa\u9762\u677f\u4e2d\u770b\u5230 &#8220;hello world&#8221; \u56db\u6b21\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/03\/2024040305571531175.jpg\" class=\"aligncenter\" title=\"sublime\u600e\u4e48\u7528php\u8f93\u51fa\u56db\u884cHellowold\u63d2\u56fe\" alt=\"sublime\u600e\u4e48\u7528php\u8f93\u51fa\u56db\u884cHellowold\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u4f7f\u7528 Sublime Text \u8f93\u51fa &#8220;Hello world&#8221;<\/strong><\/p>\n<p>\u4f7f\u7528 Sublime Text \u8f93\u51fa &#8220;Hello world&#8221; \u53ea\u9700\u51e0\u4e2a\u7b80\u5355\u7684\u6b65\u9aa4\uff1a<\/p>\n<p><strong>1. \u521b\u5efa\u65b0\u6587\u4ef6<\/strong><\/p>\n<ul>\n<li>\u6253\u5f00 Sublime Text\u3002<\/li>\n<li>\u6309 Ctrl + N\uff08Windows\uff09\u6216 Command + N\uff08macOS\uff09\u521b\u5efa\u65b0\u6587\u4ef6\u3002<\/li>\n<\/ul>\n<p><strong>2. \u8f93\u5165\u4ee3\u7801<\/strong><\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<ul>\n<li>\u5728\u65b0\u6587\u4ef6\u4e2d\u8f93\u5165\u4ee5\u4e0b PHP \u4ee3\u7801\uff1a<\/li>\n<\/ul>\n<pre>&lt;?php\necho \"Hello world!\n\";\necho \"Hello world!\n\";\necho \"Hello world!\n\";\necho \"Hello world!\n\";\n?&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>3. \u4fdd\u5b58\u6587\u4ef6<\/strong><\/p>\n<ul>\n<li>\u5c06\u6587\u4ef6\u53e6\u5b58\u4e3a\u5177\u6709 .php \u6269\u5c55\u540d\u7684\u6587\u4ef6\u3002\u4f8b\u5982\uff0chello_world.php\u3002<\/li>\n<\/ul>\n<p><strong>4. \u8fd0\u884c\u4ee3\u7801<\/strong><\/p>\n<ul>\n<li>\u6309 Ctrl + B\uff08Windows\uff09\u6216 Command + B\uff08macOS\uff09\u8fd0\u884c\u4ee3\u7801\u3002<\/li>\n<li>Sublime Text \u5c06\u5728\u8f93\u51fa\u9762\u677f\u4e2d\u8f93\u51fa &#8220;Hello world&#8221; \u56db\u6b21\u3002<\/li>\n<\/ul>\n<p><strong>\u63d0\u793a\uff1a<\/strong><\/p>\n<ul>\n<li>\u786e\u4fdd Sublime Text \u5df2\u914d\u7f6e\u4e3a\u4f7f\u7528\u6b63\u786e\u7684 PHP \u7248\u672c\u3002<\/li>\n<li>\u5982\u679c\u4f7f\u7528\u7684\u662f Windows\uff0c\u5219\u9700\u8981\u5728 PATH \u73af\u5883\u53d8\u91cf\u4e2d\u6dfb\u52a0 PHP \u53ef\u6267\u884c\u6587\u4ef6\u7684\u8def\u5f84\u3002<\/li>\n<li>\u53ef\u4ee5\u5728 Sublime Text \u4e2d\u6309 Ctrl + Shift + L\uff08Windows\uff09\u6216 Command + Shift + L\uff08macOS\uff09\u67e5\u770b\u8f93\u51fa\u9762\u677f\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u7528php\u8f93\u51fa\u56db\u884cHellowold\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528 sublime text \u8f93\u51fa &#8220;hello world&#8221; \u53ea\u9700\u56db\u6b65\uff1a\u521b\u5efa\u65b0\u6587\u4ef6\u3001\u8f93\u5165 php \u4ee3\u7801\u3001\u4fdd\u5b58\u6587\u4ef6\u5e76\u8fd0\u884c\u4ee3\u7801\u3002\u5373\u53ef\u5728\u8f93\u51fa\u9762\u677f\u4e2d\u770b\u5230 &#8220;hello world&#8221; \u56db\u6b21\u3002 \u5982\u4f55\u4f7f\u7528 Sublime Text \u8f93\u51fa &#8220;Hello world&#8221; \u4f7f\u7528 Sublime Text \u8f93\u51fa &#8220;Hello world&#8221; \u53ea\u9700\u51e0\u4e2a\u7b80\u5355\u7684\u6b65\u9aa4\uff1a 1. \u521b\u5efa\u65b0\u6587\u4ef6 \u6253\u5f00 Sublime Text\u3002 \u6309 Ctrl + N\uff08Windows\uff09\u6216 Command + N\uff08macOS\uff09\u521b\u5efa\u65b0\u6587\u4ef6\u3002 2. \u8f93\u5165\u4ee3\u7801 \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u5728\u65b0\u6587\u4ef6\u4e2d\u8f93\u5165\u4ee5\u4e0b PHP \u4ee3\u7801\uff1a &lt;?php echo &#8220;Hello world! &#8220;; echo &#8220;Hello world! &#8220;; echo &#8220;Hello world! [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-20566","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20566","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=20566"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20566\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=20566"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=20566"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=20566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}