{"id":214810,"date":"2021-04-10T10:41:19","date_gmt":"2021-04-10T02:41:19","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=214810"},"modified":"2021-03-25T08:42:04","modified_gmt":"2021-03-25T00:42:04","slug":"introduction-to-the-5","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/introduction-to-the-5.html","title":{"rendered":"PHP\u547d\u540d\u7a7a\u95f4\u7684\u4f7f\u7528\u4ecb\u7ecd"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u547d\u540d\u7a7a\u95f4\u4e00\u4e2a\u6700\u660e\u786e\u7684\u76ee\u7684\u5c31\u662f\u89e3\u51b3\u91cd\u540d\u95ee\u9898\uff0cPHP\u4e2d\u4e0d\u5141\u8bb8\u4e24\u4e2a\u51fd\u6570\u6216\u8005\u7c7b\u51fa\u73b0\u76f8\u540c\u7684\u540d\u5b57\uff0c\u5426\u5219\u4f1a\u4ea7\u751f\u4e00\u4e2a\u81f4\u547d\u7684\u9519\u8bef\u3002\u8fd9\u79cd\u60c5\u51b5\u4e0b\u53ea\u8981\u907f\u514d\u547d\u540d\u91cd\u590d\u5c31\u53ef\u4ee5\u89e3\u51b3\uff0c\u6700\u5e38\u89c1\u7684\u4e00\u79cd\u505a\u6cd5\u662f\u7ea6\u5b9a\u4e00\u4e2a\u524d\u7f00\u3002
\n<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

\u4f8b\uff1a<\/strong>\u9879\u76ee\u4e2d\u6709\u4e24\u4e2a\u6a21\u5757\uff1aarticle\u548cmessage board\uff0c\u5b83\u4eec\u5404\u81ea\u6709\u4e00\u4e2a\u5904\u7406\u7528\u6237\u7559\u8a00\u7684\u7c7bComment\u3002\u4e4b\u540e\u6211\u53ef\u80fd\u60f3\u8981\u589e\u52a0\u5bf9\u6240\u6709\u7528\u6237\u7559\u8a00\u7684\u4e00\u4e9b\u4fe1\u606f\u7edf\u8ba1\u529f\u80fd\uff0c\u6bd4\u5982\u8bf4\u6211\u60f3\u5f97\u5230\u6240\u6709\u7559\u8a00\u7684\u6570\u91cf\u3002\u8fd9\u65f6\u5019\u8c03\u7528\u5b83\u4eecComment\u63d0\u4f9b\u7684\u65b9\u6cd5\u662f\u5f88\u597d\u7684\u505a\u6cd5\uff0c\u4f46\u662f\u540c\u65f6\u5f15\u5165\u5404\u81ea\u7684Comment\u7c7b\u663e\u7136\u662f\u4e0d\u884c\u7684\uff0c\u4ee3\u7801\u4f1a\u51fa\u9519\uff0c\u5728\u53e6\u4e00\u4e2a\u5730\u65b9\u91cd\u5199\u4efb\u4f55\u4e00\u4e2aComment\u4e5f\u4f1a\u964d\u4f4e\u7ef4\u62a4\u6027\u3002\u90a3\u8fd9\u65f6\u53ea\u80fd\u91cd\u6784\u7c7b\u540d\uff0c\u6211\u7ea6\u5b9a\u4e86\u4e00\u4e2a\u547d\u540d\u89c4\u5219\uff0c\u5728\u7c7b\u540d\u524d\u9762\u52a0\u4e0a\u6a21\u5757\u540d\uff0c\u50cf\u8fd9\u6837\uff1aArticle_Comment\u3001MessageBoard_Comment<\/p>\n

\u53ef\u4ee5\u770b\u5230\uff0c\u540d\u5b57\u53d8\u5f97\u5f88\u957f\uff0c\u90a3\u610f\u5473\u7740\u4ee5\u540e\u4f7f\u7528Comment\u7684\u65f6\u5019\u4f1a\u5199\u4e0a\u66f4\u591a\u7684\u4ee3\u7801\uff08\u81f3\u5c11\u5b57\u7b26\u591a\u4e86\uff09\u3002\u5e76\u4e14\uff0c\u4ee5\u540e\u5982\u679c\u8981\u5bf9\u5404\u4e2a\u6a21\u5757\u589e\u52a0\u66f4\u591a\u7684\u4e00\u4e9b\u6574\u5408\u529f\u80fd\uff0c\u6216\u8005\u662f\u4e92\u76f8\u8c03\u7528\uff0c\u53d1\u751f\u91cd\u540d\u7684\u65f6\u5019\u5c31\u9700\u8981\u91cd\u6784\u540d\u5b57\u3002\u5f53\u7136\u5728\u9879\u76ee\u5f00\u59cb\u7684\u65f6\u5019\u5c31\u6ce8\u610f\u5230\u8fd9\u4e2a\u95ee\u9898\uff0c\u5e76\u89c4\u5b9a\u547d\u540d\u89c4\u5219\u5c31\u80fd\u5f88\u597d\u7684\u907f\u514d\u8fd9\u4e2a\u95ee\u9898\u3002\u53e6\u4e00\u4e2a\u89e3\u51b3\u65b9\u6cd5\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u547d\u540d\u7a7a\u95f4\u3002<\/p>\n

\u6ce8\u660e\uff1a<\/strong>\u672c\u6587\u63d0\u5230\u7684\u5e38\u91cf\uff1aPHP5.3\u5f00\u59cbconst\u5173\u952e\u5b57\u53ef\u4ee5\u7528\u5728\u7c7b\u7684\u5916\u90e8\u3002const\u548cdefine\u90fd\u662f\u7528\u6765\u58f0\u660e\u5e38\u91cf\u7684\uff08\u5b83\u4eec\u7684\u533a\u522b\u4e0d\u8be6\u8ff0\uff09\uff0c\u4f46\u662f\u5728\u547d\u540d\u7a7a\u95f4\u91cc\uff0cdefine\u7684\u4f5c\u7528\u662f\u5168\u5c40\u7684\uff0c\u800cconst\u5219\u4f5c\u7528\u4e8e\u5f53\u524d\u7a7a\u95f4\u3002\u6211\u5728\u6587\u4e2d\u63d0\u5230\u7684\u5e38\u91cf\u662f\u6307\u4f7f\u7528const\u58f0\u660e\u7684\u5e38\u91cf\u3002<\/p>\n

\u57fa\u7840<\/strong><\/div>\n

\u547d\u540d\u7a7a\u95f4\u5c06\u4ee3\u7801\u5212\u5206\u51fa\u4e0d\u540c\u7684\u7a7a\u95f4\uff08\u533a\u57df\uff09\uff0c\u6bcf\u4e2a\u7a7a\u95f4\u7684\u5e38\u91cf\u3001\u51fd\u6570\u3001\u7c7b\uff08\u4e3a\u4e86\u5077\u61d2\uff0c\u6211\u4e0b\u8fb9\u90fd\u5c06\u5b83\u4eec\u79f0\u4e3a\u5143\u7d20\uff09\u7684\u540d\u5b57\u4e92\u4e0d\u5f71\u54cd\uff0c \u8fd9\u4e2a\u6709\u70b9\u7c7b\u4f3c\u6211\u4eec\u5e38\u5e38\u63d0\u5230\u7684'\u5c01\u88c5'\u7684\u6982\u5ff5\u3002<\/p>\n

\u521b\u5efa\u4e00\u4e2a\u547d\u540d\u7a7a\u95f4\u9700\u8981\u4f7f\u7528namespace\u5173\u952e\u5b57\uff0c\u8fd9\u6837\uff1a<\/p>\n

<?<\/span>php\r\n<\/span>\/\/\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a'Article'\u7684\u547d\u540d\u7a7a\u95f4<\/span>\r\n<\/span>namespace<\/span> <\/span>Article<\/span>;<\/span>\r\n<\/span>?><\/span><\/pre>\n

\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5f53\u524d\u811a\u672c\u6587\u4ef6\u7684\u7b2c\u4e00\u4e2a\u547d\u540d\u7a7a\u95f4\u524d\u9762\u4e0d\u80fd\u6709\u4efb\u4f55\u4ee3\u7801\uff0c\u4e0b\u9762\u7684\u5199\u6cd5\u90fd\u662f\u9519\u8bef\u7684\uff1a<\/p>\n

\u4f8b\u4e00<\/strong><\/p>\n

\/\/\u5728\u811a\u672c\u524d\u9762\u5199\u4e86\u4e00\u4e9b\u903b\u8f91\u4ee3\u7801<\/span>\r\n<\/span><?<\/span>php\r\n$path <\/span>=<\/span> <\/span>\"\/\"<\/span>;<\/span>\r\n<\/span>class<\/span> <\/span>Comment<\/span> <\/span>{<\/span> <\/span>}<\/span>\r\n<\/span>namespace<\/span> <\/span>Article<\/span>;<\/span>\r\n<\/span>?><\/span><\/pre>\n

\u4f8b\u4e8c<\/strong><\/p>\n

<\/html><\/span>\r\n<\/span><?<\/span>php\r\n<\/span>namespace<\/span> <\/span>Article<\/span>;<\/span>\r\n<\/span>?><\/span><\/pre>\n

\u4e3a\u4ec0\u4e48\u8981\u8bf4\u7b2c\u4e00\u4e2a\u547d\u540d\u7a7a\u95f4\u5462\uff1f\u56e0\u4e3a\u540c\u4e00\u811a\u672c\u6587\u4ef6\u4e2d\u53ef\u4ee5\u521b\u5efa\u591a\u4e2a\u547d\u540d\u7a7a\u95f4\u3002<\/p>\n

\u4e0b\u9762\u6211\u521b\u5efa\u4e86\u4e24\u4e2a\u547d\u540d\u7a7a\u95f4\uff0c\u987a\u4fbf\u4e3a\u8fd9\u4e24\u4e2a\u7a7a\u95f4\u5404\u81ea\u6dfb\u52a0\u4e86\u4e00\u4e2aComment\u7c7b\u5143\u7d20\uff1a<\/p>\n

<?<\/span>php\r\n<\/span>\/\/\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a'Article'\u7684\u547d\u540d\u7a7a\u95f4<\/span>\r\n<\/span>namespace<\/span> <\/span>Article<\/span>;<\/span>\r\n\r\n<\/span>\/\/\u6b64Comment\u5c5e\u4e8eArticle\u7a7a\u95f4\u7684\u5143\u7d20<\/span>\r\n<\/span>class<\/span> <\/span>Comment<\/span> <\/span>{<\/span> <\/span>}<\/span>\r\n\r\n\r\n<\/span>\/\/\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a'MessageBoard'\u7684\u547d\u540d\u7a7a\u95f4<\/span>\r\n<\/span>namespace<\/span> <\/span>MessageBoard<\/span>;<\/span>\r\n\r\n<\/span>\/\/\u6b64Comment\u5c5e\u4e8eMessageBoard\u7a7a\u95f4\u7684\u5143\u7d20<\/span>\r\n<\/span>class<\/span> <\/span>Comment<\/span> <\/span>{<\/span> <\/span>}<\/span>\r\n<\/span>?><\/span><\/pre>\n

\u5728\u4e0d\u540c\u7a7a\u95f4\u4e4b\u95f4\u4e0d\u53ef\u4ee5\u76f4\u63a5\u8c03\u7528\u5176\u5b83\u5143\u7d20\uff0c\u9700\u8981\u4f7f\u7528\u547d\u540d\u7a7a\u95f4\u7684\u8bed\u6cd5\uff1a<\/p>\n

<?<\/span>php\r\n<\/span>namespace<\/span> <\/span>Article<\/span>;<\/span>\r\n<\/span>class<\/span> <\/span>Comment<\/span> <\/span>{<\/span> <\/span>}<\/span>\r\n\r\n<\/span>namespace<\/span> <\/span>MessageBoard<\/span>;<\/span>\r\n<\/span>class<\/span> <\/span>Comment<\/span> <\/span>{<\/span> <\/span>}<\/span>\r\n\r\n<\/span>\/\/\u8c03\u7528\u5f53\u524d\u7a7a\u95f4\uff08MessageBoard\uff09\u7684Comment\u7c7b<\/span>\r\n$comment <\/span>=<\/span> <\/span>new<\/span> <\/span>Comment<\/span>();<\/span>\r\n\r\n<\/span>\/\/\u8c03\u7528Article\u7a7a\u95f4\u7684Comment\u7c7b<\/span>\r\n$article_comment <\/span>=<\/span> <\/span>new<\/span> \\Article\\Comment<\/span>();<\/span>\r\n<\/span>?><\/span><\/pre>\n

\u53ef\u4ee5\u770b\u5230\uff0c\u5728MessageBoard\u7a7a\u95f4\u4e2d\u8c03\u7528article\u7a7a\u95f4\u91cc\u7684Comment\u7c7b\u65f6\uff0c\u4f7f\u7528\u4e86\u4e00\u79cd\u50cf\u6587\u4ef6\u8def\u5f84\u7684\u8bed\u6cd5\uff1a \\\u7a7a\u95f4\u540d\\\u5143\u7d20\u540d<\/strong><\/p>\n

\u9664\u4e86\u7c7b\u4e4b\u5916\uff0c\u5bf9\u51fd\u6570\u548c\u5e38\u91cf\u7684\u7528\u6cd5\u662f\u4e00\u6837\u7684\uff0c\u4e0b\u9762\u6211\u4e3a\u4e24\u4e2a\u7a7a\u95f4\u521b\u5efa\u4e86\u65b0\u7684\u5143\u7d20\uff0c\u5e76\u5728MessageBoard\u7a7a\u95f4\u4e2d\u8f93\u51fa\u4e86\u5b83\u4eec\u7684\u503c\u3002<\/p>\n

<?<\/span>php\r\n<\/span>namespace<\/span> <\/span>Article<\/span>;<\/span>\r\n\r\n<\/span>const<\/span> PATH <\/span>=<\/span> <\/span>'\/article'<\/span>;<\/span>\r\n\r\n<\/span>function<\/span> getCommentTotal<\/span>()<\/span> <\/span>{<\/span>\r\n    <\/span>return<\/span> <\/span>100<\/span>;<\/span>\r\n<\/span>}<\/span>\r\n\r\n<\/span>class<\/span> <\/span>Comment<\/span> <\/span>{<\/span> <\/span>}<\/span>\r\n\r\n\r\n<\/span>namespace<\/span> <\/span>MessageBoard<\/span>;<\/span>\r\n\r\n<\/span>const<\/span> PATH <\/span>=<\/span> <\/span>'\/message_board'<\/span>;<\/span>\r\n\r\n<\/span>function<\/span> getCommentTotal<\/span>()<\/span> <\/span>{<\/span>\r\n    <\/span>return<\/span> <\/span>300<\/span>;<\/span>\r\n<\/span>}<\/span>\r\n\r\n<\/span>class<\/span> <\/span>Comment<\/span> <\/span>{<\/span> <\/span>}<\/span>\r\n\r\n<\/span>\/\/\u8c03\u7528\u5f53\u524d\u7a7a\u95f4\u7684\u5e38\u91cf\u3001\u51fd\u6570\u548c\u7c7b<\/span>\r\necho PATH<\/span>;<\/span> <\/span>\/\/\/message_board<\/span>\r\necho getCommentTotal<\/span>();<\/span> <\/span>\/\/300<\/span>\r\n$comment <\/span>=<\/span> <\/span>new<\/span> <\/span>Comment<\/span>();<\/span>\r\n\r\n<\/span>\/\/\u8c03\u7528Article\u7a7a\u95f4\u7684\u5e38\u91cf\u3001\u51fd\u6570\u548c\u7c7b<\/span>\r\necho \\Article\\PATH<\/span>;<\/span> <\/span>\/\/\/article<\/span>\r\necho \\Article\\getCommentTotal<\/span>();<\/span> <\/span>\/\/100<\/span>\r\n$article_comment <\/span>=<\/span> <\/span>new<\/span> \\Article\\Comment<\/span>();<\/span>\r\n<\/span>?><\/span><\/pre>\n

\u7136\u540e\u6211\u7684\u786e\u5f97\u5230\u4e86Article\u7a7a\u95f4\u7684\u5143\u7d20\u6570\u636e\u3002<\/p>\n

\u5b50\u7a7a\u95f4<\/strong><\/div>\n

\u547d\u540d\u7a7a\u95f4\u7684\u8c03\u7528\u8bed\u6cd5\u50cf\u6587\u4ef6\u8def\u5f84\u4e00\u6837\u662f\u6709\u9053\u7406\u7684\uff0c\u5b83\u5141\u8bb8\u6211\u4eec\u81ea\u5b9a\u4e49\u5b50\u7a7a\u95f4\u6765\u63cf\u8ff0\u5404\u4e2a\u7a7a\u95f4\u4e4b\u95f4\u7684\u5173\u7cfb\u3002<\/p>\n

\u62b1\u6b49\u6211\u5fd8\u4e86\u8bf4\uff0carticle\u548cmessage board\u8fd9\u4e24\u4e2a\u6a21\u5757\u5176\u5b9e\u90fd\u662f\u5904\u4e8e\u540c\u4e00\u4e2ablog\u9879\u76ee\u5185\u3002\u5982\u679c\u7528\u547d\u540d\u7a7a\u95f4\u6765\u8868\u8fbe\u5b83\u4eec\u7684\u5173\u7cfb\uff0c\u662f\u8fd9\u6837\uff1a<\/p>\n

<?<\/span>php\r\n<\/span>\/\/\u6211\u7528\u8fd9\u6837\u7684\u547d\u540d\u7a7a\u95f4\u8868\u793a\u5904\u4e8eblog\u4e0b\u7684article\u6a21\u5757<\/span>\r\n<\/span>namespace<\/span> <\/span>Blog<\/span>\\Article<\/span>;<\/span>\r\n\r\n<\/span>class<\/span> <\/span>Comment<\/span> <\/span>{<\/span> <\/span>}<\/span>\r\n\r\n\r\n<\/span>\/\/\u6211\u7528\u8fd9\u6837\u7684\u547d\u540d\u7a7a\u95f4\u8868\u793a\u5904\u4e8eblog\u4e0b\u7684message board\u6a21\u5757<\/span>\r\n<\/span>namespace<\/span> <\/span>Blog<\/span>\\MessageBoard<\/span>;<\/span>\r\n\r\n<\/span>class<\/span> <\/span>Comment<\/span> <\/span>{<\/span> <\/span>}<\/span>\r\n\r\n<\/span>\/\/\u8c03\u7528\u5f53\u524d\u7a7a\u95f4\u7684\u7c7b<\/span>\r\n$comment <\/span>=<\/span> <\/span>new<\/span> <\/span>Comment<\/span>();<\/span>\r\n\r\n<\/span>\/\/\u8c03\u7528Blog\\Article\u7a7a\u95f4\u7684\u7c7b<\/span>\r\n$article_comment <\/span>=<\/span> <\/span>new<\/span> \\Blog\\Article\\Comment<\/span>();<\/span>\r\n<\/span>?><\/span><\/pre>\n

\u800c\u4e14\uff0c\u5b50\u7a7a\u95f4\u8fd8\u53ef\u4ee5\u5b9a\u4e49\u5f88\u591a\u5c42\u6b21\uff0c\u6bd4\u5982\u8bf4 Blog\\Article\\Archives\\Date<\/p>\n

\u516c\u5171\u7a7a\u95f4<\/strong><\/div>\n

\u6211\u6709\u4e00\u4e2acommon_inc.php\u811a\u672c\u6587\u4ef6\uff0c\u91cc\u9762\u6709\u4e00\u4e9b\u597d\u7528\u7684\u51fd\u6570\u548c\u7c7b\uff1a<\/p>\n

<?<\/span>php\r\n<\/span>function<\/span> getIP<\/span>()<\/span> <\/span>{<\/span> <\/span>}<\/span>\r\n<\/span>class<\/span> <\/span>FilterXSS<\/span> <\/span>{<\/span> <\/span>}<\/span>\r\n<\/span>?><\/span><\/pre>\n

\u5728\u4e00\u4e2a\u547d\u540d\u7a7a\u95f4\u91cc\u5f15\u5165\u8fd9\u4e2a\u811a\u672c\uff0c\u811a\u672c\u91cc\u7684\u5143\u7d20\u4e0d\u4f1a\u5f52\u5c5e\u5230\u8fd9\u4e2a\u547d\u540d\u7a7a\u95f4\u3002\u5982\u679c\u8fd9\u4e2a\u811a\u672c\u91cc\u6ca1\u6709\u5b9a\u4e49\u5176\u5b83\u547d\u540d\u7a7a\u95f4\uff0c\u5b83\u7684\u5143\u7d20\u5c31\u59cb\u7ec8\u5904\u4e8e\u516c\u5171\u7a7a\u95f4\u4e2d\uff1a<\/p>\n

<?<\/span>php\r\n<\/span>namespace<\/span> <\/span>Blog<\/span>\\Article<\/span>;<\/span>\r\n\r\n<\/span>\/\/\u5f15\u5165\u811a\u672c\u6587\u4ef6<\/span>\r\ninclude <\/span>'.\/common_inc.php'<\/span>;<\/span>\r\n$filter_XSS <\/span>=<\/span> <\/span>new<\/span> <\/span>FilterXSS<\/span>();<\/span> <\/span>\/\/\u51fa\u73b0\u81f4\u547d\u9519\u8bef\uff1a\u627e\u4e0d\u5230Blog\\Article\\FilterXSS\u7c7b<\/span>\r\n$filter_XSS <\/span>=<\/span> <\/span>new<\/span> \\FilterXSS<\/span>();<\/span> <\/span>\/\/\u6b63\u786e<\/span>\r\n<\/span>?><\/span><\/pre>\n

\u8c03\u7528\u516c\u5171\u7a7a\u95f4\u7684\u65b9\u5f0f\u662f\u76f4\u63a5\u5728\u5143\u7d20\u540d\u79f0\u524d\u52a0 \\ \u5c31\u53ef\u4ee5\u4e86\uff0c\u5426\u5219PHP\u89e3\u6790\u5668\u4f1a\u8ba4\u4e3a\u6211\u60f3\u8c03\u7528\u5f53\u524d\u7a7a\u95f4\u4e0b\u7684\u5143\u7d20\u3002\u9664\u4e86\u81ea\u5b9a\u4e49\u7684\u5143\u7d20\uff0c\u8fd8\u5305\u62ecPHP\u81ea\u5e26\u7684\u5143\u7d20\uff0c\u90fd\u5c5e\u4e8e\u516c\u5171\u7a7a\u95f4\u3002<\/p>\n

\u8981\u63d0\u4e00\u4e0b\uff0c\u5176\u5b9e\u516c\u5171\u7a7a\u95f4\u7684\u51fd\u6570\u548c\u5e38\u91cf\u4e0d\u7528\u52a0 \\ \u4e5f\u53ef\u4ee5\u6b63\u5e38\u8c03\u7528\uff08\u4e0d\u660e\u767dPHP\u4e3a\u4ec0\u4e48\u8981\u8fd9\u6837\u505a\uff09\uff0c\u4f46\u662f\u4e3a\u4e86\u6b63\u786e\u533a\u5206\u5143\u7d20\uff0c\u8fd8\u662f\u5efa\u8bae\u8c03\u7528\u51fd\u6570\u7684\u65f6\u5019\u52a0\u4e0a \\<\/p>\n

\u540d\u79f0\u672f\u8bed<\/strong><\/div>\n

\u5728\u8bf4\u522b\u540d\u548c\u5bfc\u5165\u4e4b\u524d\uff0c\u9700\u8981\u77e5\u9053\u5173\u4e8e\u7a7a\u95f4\u4e09\u79cd\u540d\u79f0\u7684\u672f\u8bed\uff0c\u4ee5\u53caPHP\u662f\u600e\u6837\u89e3\u6790\u5b83\u4eec\u7684\u3002\u5b98\u65b9\u6587\u6863\u8bf4\u5f97\u975e\u5e38\u597d\uff0c\u6211\u5c31\u76f4\u63a5\u62ff\u6765\u5957\u4e86\u3002<\/p>\n

    \n
  1. \u975e\u9650\u5b9a\u540d\u79f0\uff0c\u6216\u4e0d\u5305\u542b\u524d\u7f00\u7684\u7c7b\u540d\u79f0\uff0c\u4f8b\u5982 $comment = new Comment();\u3002\u5982\u679c\u5f53\u524d\u547d\u540d\u7a7a\u95f4\u662fBlog\\Article\uff0cComment\u5c06\u88ab\u89e3\u6790\u4e3aBlog\\Article\\Comment\u3002\u5982\u679c\u4f7f\u7528Comment\u7684\u4ee3\u7801\u4e0d\u5305\u542b\u5728\u4efb\u4f55\u547d\u540d\u7a7a\u95f4\u4e2d\u7684\u4ee3\u7801\uff08\u5168\u5c40\u7a7a\u95f4\u4e2d\uff09\uff0c\u5219Comment\u4f1a\u88ab\u89e3\u6790\u4e3aComment\u3002<\/li>\n
  2. \u9650\u5b9a\u540d\u79f0\uff0c\u6216\u5305\u542b\u524d\u7f00\u7684\u540d\u79f0\uff0c\u4f8b\u5982 $comment = new Article\\Comment();\u3002\u5982\u679c\u5f53\u524d\u7684\u547d\u540d\u7a7a\u95f4\u662fBlog\uff0c\u5219Comment\u4f1a\u88ab\u89e3\u6790\u4e3aBlog\\Article\\Comment\u3002\u5982\u679c\u4f7f\u7528Comment\u7684\u4ee3\u7801\u4e0d\u5305\u542b\u5728\u4efb\u4f55\u547d\u540d\u7a7a\u95f4\u4e2d\u7684\u4ee3\u7801\uff08\u5168\u5c40\u7a7a\u95f4\u4e2d\uff09\uff0c\u5219Comment\u4f1a\u88ab\u89e3\u6790\u4e3aComment\u3002<\/li>\n
  3. \u5b8c\u5168\u9650\u5b9a\u540d\u79f0\uff0c\u6216\u5305\u542b\u4e86\u5168\u5c40\u524d\u7f00\u64cd\u4f5c\u7b26\u7684\u540d\u79f0\uff0c\u4f8b\u5982 $comment = new \\Article\\Comment();\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0cComment\u603b\u662f\u88ab\u89e3\u6790\u4e3a\u4ee3\u7801\u4e2d\u7684\u6587\u5b57\u540d(literal name)Article\\Comment\u3002<\/li>\n<\/ol>\n

    \u5176\u5b9e\u53ef\u4ee5\u628a\u8fd9\u4e09\u79cd\u540d\u79f0\u7c7b\u6bd4\u4e3a\u6587\u4ef6\u540d\uff08\u4f8b\u5982 comment.php\uff09\u3001\u76f8\u5bf9\u8def\u5f84\u540d\uff08\u4f8b\u5982 .\/article\/comment.php\uff09\u3001\u7edd\u5bf9\u8def\u5f84\u540d\uff08\u4f8b\u5982 \/blog\/article\/comment.php\uff09\uff0c\u8fd9\u6837\u53ef\u80fd\u4f1a\u66f4\u5bb9\u6613\u7406\u89e3\u3002<\/p>\n

    \u6211\u7528\u4e86\u51e0\u4e2a\u793a\u4f8b\u6765\u8868\u793a\u5b83\u4eec\uff1a
    \n\u5176\u5b9e\u53ef\u4ee5\u628a\u8fd9\u4e09\u79cd\u540d\u79f0\u7c7b\u6bd4\u4e3a\u6587\u4ef6\u540d\uff08\u4f8b\u5982 comment.php\uff09\u3001\u76f8\u5bf9\u8def\u5f84\u540d\uff08\u4f8b\u5982 .\/article\/comment.php\uff09\u3001\u7edd\u5bf9\u8def\u5f84\u540d\uff08\u4f8b\u5982 \/blog\/article\/comment.php\uff09\uff0c\u8fd9\u6837\u53ef\u80fd\u4f1a\u66f4\u5bb9\u6613\u7406\u89e3\u3002<\/p>\n

    \u6211\u7528\u4e86\u51e0\u4e2a\u793a\u4f8b\u6765\u8868\u793a\u5b83\u4eec\uff1a<\/p>\n

    <?<\/span>php\r\n<\/span>\/\/\u521b\u5efa\u7a7a\u95f4Blog<\/span>\r\n<\/span>namespace<\/span> <\/span>Blog<\/span>;<\/span>\r\n\r\n<\/span>class<\/span> <\/span>Comment<\/span> <\/span>{<\/span> <\/span>}<\/span>\r\n\r\n<\/span>\/\/\u975e\u9650\u5b9a\u540d\u79f0\uff0c\u8868\u793a\u5f53\u524dBlog\u7a7a\u95f4<\/span>\r\n<\/span>\/\/\u8fd9\u4e2a\u8c03\u7528\u5c06\u88ab\u89e3\u6790\u6210 Blog\\Comment();<\/span>\r\n$blog_comment <\/span>=<\/span> <\/span>new<\/span> <\/span>Comment<\/span>();<\/span>\r\n\r\n<\/span>\/\/\u9650\u5b9a\u540d\u79f0\uff0c\u8868\u793a\u76f8\u5bf9\u4e8eBlog\u7a7a\u95f4<\/span>\r\n<\/span>\/\/\u8fd9\u4e2a\u8c03\u7528\u5c06\u88ab\u89e3\u6790\u6210 Blog\\Article\\Comment();<\/span>\r\n$article_comment <\/span>=<\/span> <\/span>new<\/span> <\/span>Article<\/span>\\Comment<\/span>();<\/span> <\/span>\/\/\u7c7b\u524d\u9762\u6ca1\u6709\u53cd\u659c\u6746\\<\/span>\r\n\r\n<\/span>\/\/\u5b8c\u5168\u9650\u5b9a\u540d\u79f0\uff0c\u8868\u793a\u7edd\u5bf9\u4e8eBlog\u7a7a\u95f4<\/span>\r\n<\/span>\/\/\u8fd9\u4e2a\u8c03\u7528\u5c06\u88ab\u89e3\u6790\u6210 Blog\\Comment();<\/span>\r\n$article_comment <\/span>=<\/span> <\/span>new<\/span> \\Blog\\Comment<\/span>();<\/span> <\/span>\/\/\u7c7b\u524d\u9762\u6709\u53cd\u659c\u6746\\<\/span>\r\n\r\n<\/span>\/\/\u5b8c\u5168\u9650\u5b9a\u540d\u79f0\uff0c\u8868\u793a\u7edd\u5bf9\u4e8eBlog\u7a7a\u95f4<\/span>\r\n<\/span>\/\/\u8fd9\u4e2a\u8c03\u7528\u5c06\u88ab\u89e3\u6790\u6210 Blog\\Article\\Comment();<\/span>\r\n$article_comment <\/span>=<\/span> <\/span>new<\/span> \\Blog\\Article\\Comment<\/span>();<\/span> <\/span>\/\/\u7c7b\u524d\u9762\u6709\u53cd\u659c\u6746\\<\/span>\r\n\r\n\r\n<\/span>\/\/\u521b\u5efaBlog\u7684\u5b50\u7a7a\u95f4Article<\/span>\r\n<\/span>namespace<\/span> <\/span>Blog<\/span>\\Article<\/span>;<\/span>\r\n\r\n<\/span>class<\/span> <\/span>Comment<\/span> <\/span>{<\/span> <\/span>}<\/span>\r\n<\/span>?><\/span><\/pre>\n

    \u5176\u5b9e\u4e4b\u524d\u6211\u5c31\u4e00\u76f4\u5728\u4f7f\u7528\u975e\u9650\u5b9a\u540d\u79f0\u548c\u5b8c\u5168\u9650\u5b9a\u540d\u79f0\uff0c\u73b0\u5728\u5b83\u4eec\u7ec8\u4e8e\u53ef\u4ee5\u53eb\u51fa\u5b83\u4eec\u7684\u540d\u79f0\u4e86\u3002<\/p>\n

    \u522b\u540d\u548c\u5bfc\u5165<\/strong><\/div>\n

    \u522b\u540d\u548c\u5bfc\u5165\u53ef\u4ee5\u770b\u4f5c\u662f\u8c03\u7528\u547d\u540d\u7a7a\u95f4\u5143\u7d20\u7684\u4e00\u79cd\u5feb\u6377\u65b9\u5f0f\u3002PHP\u5e76\u4e0d\u652f\u6301\u5bfc\u5165\u51fd\u6570\u6216\u5e38\u91cf\u3002<\/p>\n

    \u5b83\u4eec\u90fd\u662f\u901a\u8fc7\u4f7f\u7528use\u64cd\u4f5c\u7b26\u6765\u5b9e\u73b0\uff1a<\/p>\n

    <?<\/span>php\r\n<\/span>namespace<\/span> <\/span>Blog<\/span>\\Article<\/span>;<\/span>\r\n\r\n<\/span>class<\/span> <\/span>Comment<\/span> <\/span>{<\/span> <\/span>}<\/span>\r\n\r\n\r\n<\/span>\/\/\u521b\u5efa\u4e00\u4e2aBBS\u7a7a\u95f4\uff08\u6211\u6709\u6253\u7b97\u5f00\u4e2a\u8bba\u575b\uff09<\/span>\r\n<\/span>namespace<\/span> BBS<\/span>;<\/span>\r\n\r\n<\/span>\/\/\u5bfc\u5165\u4e00\u4e2a\u547d\u540d\u7a7a\u95f4<\/span>\r\n<\/span>use<\/span> <\/span>Blog<\/span>\\Article<\/span>;<\/span>\r\n<\/span>\/\/\u5bfc\u5165\u547d\u540d\u7a7a\u95f4\u540e\u53ef\u4f7f\u7528\u9650\u5b9a\u540d\u79f0\u8c03\u7528\u5143\u7d20<\/span>\r\n$article_comment <\/span>=<\/span> <\/span>new<\/span> <\/span>Article<\/span>\\Comment<\/span>();<\/span>\r\n\r\n<\/span>\/\/\u4e3a\u547d\u540d\u7a7a\u95f4\u4f7f\u7528\u522b\u540d<\/span>\r\n<\/span>use<\/span> <\/span>Blog<\/span>\\Article <\/span>as<\/span> <\/span>Arte<\/span>;<\/span>\r\n<\/span>\/\/\u4f7f\u7528\u522b\u540d\u4ee3\u66ff\u7a7a\u95f4\u540d<\/span>\r\n$article_comment <\/span>=<\/span> <\/span>new<\/span> <\/span>Arte<\/span>\\Comment<\/span>();<\/span>\r\n\r\n<\/span>\/\/\u5bfc\u5165\u4e00\u4e2a\u7c7b<\/span>\r\n<\/span>use<\/span> <\/span>Blog<\/span>\\Article\\Comment<\/span>;<\/span>\r\n<\/span>\/\/\u5bfc\u5165\u7c7b\u540e\u53ef\u4f7f\u7528\u975e\u9650\u5b9a\u540d\u79f0\u8c03\u7528\u5143\u7d20<\/span>\r\n$article_comment <\/span>=<\/span> <\/span>new<\/span> <\/span>Comment<\/span>();<\/span>\r\n\r\n<\/span>\/\/\u4e3a\u7c7b\u4f7f\u7528\u522b\u540d<\/span>\r\n<\/span>use<\/span> <\/span>Blog<\/span>\\Article\\Comment <\/span>as<\/span> <\/span>Comt<\/span>;<\/span>\r\n<\/span>\/\/\u4f7f\u7528\u522b\u540d\u4ee3\u66ff\u7a7a\u95f4\u540d<\/span>\r\n$article_comment <\/span>=<\/span> <\/span>new<\/span> <\/span>Comt<\/span>();<\/span>\r\n<\/span>?><\/span><\/pre>\n

    \u6211\u6ce8\u610f\u5230\uff0c\u5982\u679c\u5bfc\u5165\u5143\u7d20\u7684\u65f6\u5019\uff0c\u5f53\u524d\u7a7a\u95f4\u6709\u76f8\u540c\u7684\u540d\u5b57\u5143\u7d20\u5c06\u4f1a\u600e\u6837\uff1f\u663e\u7136\u7ed3\u679c\u4f1a\u53d1\u751f\u81f4\u547d\u9519\u8bef\u3002<\/p>\n

    <?<\/span>php\r\n<\/span>namespace<\/span> <\/span>Blog<\/span>\\Article<\/span>;<\/span>\r\n\r\n<\/span>class<\/span> <\/span>Comment<\/span> <\/span>{<\/span> <\/span>}<\/span>\r\n\r\n\r\n<\/span>namespace<\/span> BBS<\/span>;<\/span>\r\n\r\n<\/span>class<\/span> <\/span>Comment<\/span> <\/span>{<\/span> <\/span>}<\/span>\r\n\r\n<\/span>Class<\/span> <\/span>Comt<\/span> <\/span>{<\/span> <\/span>}<\/span>\r\n\r\n\r\n<\/span>\/\/\u5bfc\u5165\u4e00\u4e2a\u7c7b<\/span>\r\n<\/span>use<\/span> <\/span>Blog<\/span>\\Article\\Comment<\/span>;<\/span>\r\n$article_comment <\/span>=<\/span> <\/span>new<\/span> <\/span>Comment<\/span>();<\/span> <\/span>\/\/\u4e0e\u5f53\u524d\u7a7a\u95f4\u7684Comment\u53d1\u751f\u51b2\u7a81\uff0c\u7a0b\u5e8f\u4ea7\u751f\u81f4\u547d\u9519\u8bef<\/span>\r\n\r\n<\/span>\/\/\u4e3a\u7c7b\u4f7f\u7528\u522b\u540d<\/span>\r\n<\/span>use<\/span> <\/span>Blog<\/span>\\Article\\Comment <\/span>as<\/span> <\/span>Comt<\/span>;<\/span>\r\n$article_comment <\/span>=<\/span> <\/span>new<\/span> <\/span>Comt<\/span>();<\/span> <\/span>\/\/\u4e0e\u5f53\u524d\u7a7a\u95f4\u7684Comt\u53d1\u751f\u51b2\u7a81\uff0c\u7a0b\u5e8f\u4ea7\u751f\u81f4\u547d\u9519\u8bef<\/span>\r\n<\/span>?><\/span><\/pre>\n
    \u52a8\u6001\u8c03\u7528<\/strong><\/div>\n

    PHP\u63d0\u4f9b\u4e86namespace\u5173\u952e\u5b57\u548c__NAMESPACE__\u9b54\u6cd5\u5e38\u91cf\u52a8\u6001\u7684\u8bbf\u95ee\u5143\u7d20\uff0c__NAMESPACE__\u53ef\u4ee5\u901a\u8fc7\u7ec4\u5408\u5b57\u7b26\u4e32\u7684\u5f62\u5f0f\u6765\u52a8\u6001\u8bbf\u95ee\uff1a<\/p>\n

    <?<\/span>php\r\n<\/span>namespace<\/span> <\/span>Blog<\/span>\\Article<\/span>;<\/span>\r\n\r\n<\/span>const<\/span> PATH <\/span>=<\/span> <\/span>'\/Blog\/article'<\/span>;<\/span>\r\n\r\n<\/span>class<\/span> <\/span>Comment<\/span> <\/span>{<\/span> <\/span>}<\/span>\r\n\r\n\r\n<\/span>\/\/namespace\u5173\u952e\u5b57\u8868\u793a\u5f53\u524d\u7a7a\u95f4<\/span>\r\necho <\/span>namespace<\/span>\\PATH<\/span>;<\/span> <\/span>\/\/\/Blog\/article<\/span>\r\n$comment <\/span>=<\/span> <\/span>new<\/span> <\/span>namespace<\/span>\\Comment<\/span>();<\/span>\r\n\r\n<\/span>\/\/\u9b54\u6cd5\u5e38\u91cf__NAMESPACE__\u7684\u503c\u662f\u5f53\u524d\u7a7a\u95f4\u540d\u79f0<\/span>\r\necho __NAMESPACE__<\/span>;<\/span> <\/span>\/\/Blog\\Article<\/span>\r\n<\/span>\/\/\u53ef\u4ee5\u7ec4\u5408\u6210\u5b57\u7b26\u4e32\u5e76\u8c03\u7528<\/span>\r\n$comment_class_name <\/span>=<\/span> __NAMESPACE__ <\/span>.<\/span> <\/span>'\\Comment'<\/span>;<\/span>\r\n$comment <\/span>=<\/span> <\/span>new<\/span> $comment_class_name<\/span>();<\/span>\r\n<\/span>?><\/span><\/pre>\n
    \u5b57\u7b26\u4e32\u5f62\u5f0f\u8c03\u7528\u95ee\u9898<\/strong><\/div>\n

    \u4e0a\u9762\u7684\u52a8\u6001\u8c03\u7528\u7684\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u770b\u5230\u4e86\u5b57\u7b26\u4e32\u5f62\u5f0f\u7684\u52a8\u6001\u8c03\u7528\u65b9\u5f0f\uff0c\u5982\u679c\u8981\u4f7f\u7528\u8fd9\u79cd\u65b9\u5f0f\u8981\u6ce8\u610f\u4e24\u4e2a\u95ee\u9898\u3002<\/p>\n

    \u4f7f\u7528\u53cc\u5f15\u53f7\u7684\u65f6\u5019\u7279\u6b8a\u5b57\u7b26\u53ef\u80fd\u88ab\u8f6c\u4e49<\/strong><\/span><\/div>\n
    <?<\/span>php\r\n<\/span>namespace<\/span> <\/span>Blog<\/span>\\Article<\/span>;<\/span>\r\n\r\n<\/span>class<\/span> name <\/span>{<\/span> <\/span>}<\/span>\r\n\r\n<\/span>\/\/\u6211\u662f\u60f3\u8c03\u7528Blog\\Article\\name<\/span>\r\n$class_name <\/span>=<\/span> __NAMESPACE__ <\/span>.<\/span> <\/span>\"\\name\"<\/span>;<\/span> <\/span>\/\/\u4f46\u662f\\n\u5c06\u88ab\u8f6c\u4e49\u4e3a\u6362\u884c\u7b26<\/span>\r\n\r\n$name <\/span>=<\/span> <\/span>new<\/span> $class_name<\/span>();<\/span> <\/span>\/\/\u53d1\u751f\u81f4\u547d\u9519\u8bef<\/span>\r\n<\/span>?><\/span><\/pre>\n
    \u4e0d\u4f1a\u8ba4\u4e3a\u662f\u9650\u5b9a\u540d\u79f0<\/strong><\/span><\/div>\n

    PHP\u5728\u7f16\u8bd1\u811a\u672c\u7684\u65f6\u5019\u5c31\u786e\u5b9a\u4e86\u5143\u7d20\u6240\u5728\u7684\u7a7a\u95f4\uff0c\u4ee5\u53ca\u5bfc\u5165\u7684\u60c5\u51b5\u3002\u800c\u5728\u89e3\u6790\u811a\u672c\u65f6\u5b57\u7b26\u4e32\u5f62\u5f0f\u8c03\u7528\u53ea\u80fd\u8ba4\u4e3a\u662f\u975e\u9650\u5b9a\u540d\u79f0\u548c\u5b8c\u5168\u9650\u5b9a\u540d\u79f0\uff0c\u800c\u6c38\u8fdc\u4e0d\u53ef\u80fd\u662f\u9650\u5b9a\u540d\u79f0\u3002<\/p>\n

    <?<\/span>php\r\n<\/span>namespace<\/span> <\/span>Blog<\/span>;<\/span>\r\n\r\n<\/span>\/\/\u5bfc\u5165Common\u7c7b<\/span>\r\n<\/span>use<\/span> <\/span>Blog<\/span>\\Article\\Common<\/span>;<\/span>\r\n<\/span>\/\/\u6211\u60f3\u4f7f\u7528\u975e\u9650\u5b9a\u540d\u79f0\u8c03\u7528Blog\\Article\\Common<\/span>\r\n$common_class_name <\/span>=<\/span> <\/span>'Common'<\/span>;<\/span>\r\n<\/span>\/\/\u5b9e\u9645\u4f1a\u88ab\u5f53\u4f5c\u975e\u9650\u5b9a\u540d\u79f0\uff0c\u4e5f\u5c31\u8868\u793a\u5f53\u524d\u7a7a\u95f4\u7684Common\u7c7b\uff0c\u4f46\u6211\u5f53\u524d\u7c7b\u6ca1\u6709\u521b\u5efaCommon\u7c7b<\/span>\r\n$common <\/span>=<\/span> <\/span>new<\/span> $common_class_name<\/span>();<\/span> <\/span>\/\/\u53d1\u751f\u81f4\u547d\u9519\u8bef\uff1aCommon\u7c7b\u4e0d\u5b58\u5728<\/span>\r\n\r\n<\/span>\/\/\u6211\u60f3\u4f7f\u7528\u9650\u5b9a\u540d\u79f0\u8c03\u7528Blog\\Article\\Common<\/span>\r\n$common_class_name <\/span>=<\/span> <\/span>'Article\\Common'<\/span>;<\/span>\r\n<\/span>\/\/\u5b9e\u9645\u4f1a\u88ab\u5f53\u4f5c\u5b8c\u5168\u9650\u5b9a\u540d\u79f0\uff0c\u4e5f\u5c31\u8868\u793aArticle\u7a7a\u95f4\u4e0b\u7684Common\u7c7b\uff0c\u4f46\u6211\u4e0b\u9762\u53ea\u5b9a\u4e49\u4e86Blog\\Article\u7a7a\u95f4\u800c\u4e0d\u662fArticle\u7a7a\u95f4<\/span>\r\n$common <\/span>=<\/span> <\/span>new<\/span> $common_class_name<\/span>();<\/span> <\/span>\/\/\u53d1\u751f\u81f4\u547d\u9519\u8bef\uff1aArticle\\Common\u7c7b\u4e0d\u5b58\u5728<\/span>\r\n\r\n\r\n<\/span>namespace<\/span> <\/span>Blog<\/span>\\Article<\/span>;<\/span>\r\n\r\n<\/span>class<\/span> <\/span>Common<\/span> <\/span>{<\/span> <\/span>}<\/span>\r\n<\/span>?><\/span><\/pre>\n
    \u603b\u7ed3<\/strong><\/div>\n

    \u6211\u5bf9PHP\u7684\u547d\u540d\u7a7a\u95f4\u521a\u521a\u63a5\u89e6\uff0c\u4e5f\u4e0d\u80fd\u968f\u4fbf\u7ed9\u4e00\u4e9b\u6ca1\u6709\u5b9e\u8df5\u7684\u5efa\u8bae\u3002\u6211\u4e2a\u4eba\u8ba4\u4e3a\u547d\u540d\u7a7a\u95f4\u7684\u4f5c\u7528\u548c\u529f\u80fd\u90fd\u5f88\u5f3a\u5927\uff0c\u5982\u679c\u8981\u5199\u63d2\u4ef6\u6216\u8005\u901a\u7528\u5e93\u7684\u65f6\u5019\u518d\u4e5f\u4e0d\u7528\u62c5\u5fc3\u91cd\u540d\u95ee\u9898\u3002\u4e0d\u8fc7\u5982\u679c\u9879\u76ee\u8fdb\u884c\u5230\u4e00\u5b9a\u7a0b\u5ea6\uff0c\u8981\u901a\u8fc7\u589e\u52a0\u547d\u540d\u7a7a\u95f4\u53bb\u89e3\u51b3\u91cd\u540d\u95ee\u9898\uff0c\u6211\u89c9\u5f97\u5de5\u4f5c\u91cf\u4e0d\u4f1a\u6bd4\u91cd\u6784\u540d\u5b57\u5c11\u3002\u4e5f\u4e0d\u5f97\u4e0d\u627f\u8ba4\u5b83\u7684\u8bed\u6cd5\u4f1a\u5bf9\u9879\u76ee\u589e\u52a0\u4e00\u5b9a\u7684\u590d\u6742\u5ea6\uff0c\u56e0\u6b64\u4ece\u9879\u76ee\u4e00\u5f00\u59cb\u7684\u65f6\u5019\u5c31\u5e94\u8be5\u5f88\u597d\u7684\u89c4\u5212\u5b83\uff0c\u5e76\u5236\u5b9a\u4e00\u4e2a\u547d\u540d\u89c4\u8303\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

    \u4f8b\uff1a\u9879\u76ee\u4e2d\u6709\u4e24\u4e2a\u6a21\u5757\uff1aarticle\u548cmessage board\uff0c\u5b83\u4eec\u5404\u81ea\u6709\u4e00\u4e2a\u5904\u7406\u7528\u6237\u7559\u8a00\u7684\u7c7bComment […]<\/p>\n","protected":false},"author":1470,"featured_media":214812,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-214810","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/214810","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1470"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=214810"}],"version-history":[{"count":8,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/214810\/revisions"}],"predecessor-version":[{"id":214820,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/214810\/revisions\/214820"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/214812"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=214810"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=214810"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=214810"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}