{"id":48165,"date":"2024-12-02T17:17:35","date_gmt":"2024-12-02T09:17:35","guid":{"rendered":"https:\/\/fwq.ai\/blog\/48165\/"},"modified":"2024-12-02T17:17:35","modified_gmt":"2024-12-02T09:17:35","slug":"php%e5%87%bd%e6%95%b0%e7%89%88%e6%9c%ac%e6%9b%b4%e6%96%b0%e5%af%b9%e5%a4%a7%e5%9e%8b%e9%a1%b9%e7%9b%ae%e7%9a%84%e6%8c%91%e6%88%98%e5%92%8c%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/48165\/","title":{"rendered":"php\u51fd\u6570\u7248\u672c\u66f4\u65b0\u5bf9\u5927\u578b\u9879\u76ee\u7684\u6311\u6218\u548c\u89e3\u51b3\u65b9\u6848"},"content":{"rendered":"<p><b><\/b> <\/p>\n<h1>php\u51fd\u6570\u7248\u672c\u66f4\u65b0\u5bf9\u5927\u578b\u9879\u76ee\u7684\u6311\u6218\u548c\u89e3\u51b3\u65b9\u6848<\/h1>\n<p>\u5c0f\u4f19\u4f34\u4eec\u5bf9\u6587\u7ae0\u7f16\u7a0b\u611f\u5174\u8da3\u5417\uff1f\u662f\u5426\u6b63\u5728\u5b66\u4e60\u76f8\u5173\u77e5\u8bc6\u70b9\uff1f\u5982\u679c\u662f\uff0c\u90a3\u4e48\u672c\u6587\u300aphp\u51fd\u6570\u7248\u672c\u66f4\u65b0\u5bf9\u5927\u578b\u9879\u76ee\u7684\u6311\u6218\u548c\u89e3\u51b3\u65b9\u6848\u300b\uff0c\u5c31\u5f88\u9002\u5408\u4f60\uff0c\u672c\u7bc7\u6587\u7ae0\u8bb2\u89e3\u7684\u77e5\u8bc6\u70b9\u4e3b\u8981\u5305\u62ec\u3002\u5728\u4e4b\u540e\u7684\u6587\u7ae0\u4e2d\u4e5f\u4f1a\u591a\u591a\u5206\u4eab\u76f8\u5173\u77e5\u8bc6\u70b9\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u7684\u77e5\u8bc6\u79ef\u7d2f\u6709\u6240\u5e2e\u52a9\uff01<\/p>\n<p>\u5927\u578b PHP \u9879\u76ee\u7684\u51fd\u6570\u7248\u672c\u66f4\u65b0\u5b58\u5728\u4e0d\u517c\u5bb9\u6027\u548c\u5927\u578b\u4ee3\u7801\u5e93\u590d\u6742\u6027\u7684\u6311\u6218\u3002\u89e3\u51b3\u65b9\u6848\u5305\u62ec\uff1a1\uff09\u6e10\u8fdb\u5f0f\u5347\u7ea7\u7b56\u7565\uff1b2\uff09\u5355\u5143\u6d4b\u8bd5\u548c\u96c6\u6210\u6d4b\u8bd5\uff1b3\uff09\u4ee3\u7801\u9759\u6001\u5206\u6790\uff1b4\uff09\u7248\u672c\u63a7\u5236\u548c\u5206\u652f\uff1b5\uff09\u4f9b\u5e94\u5546\u7ba1\u7406\u3002\u5b9e\u6218\u6848\u4f8b\uff1a\u66f4\u65b0 array_map() \u51fd\u6570\u65f6\uff0c\u91c7\u53d6\u521b\u5efa\u5206\u652f\u3001\u7f16\u5199\u6d4b\u8bd5\u3001\u4f7f\u7528\u9759\u6001\u5206\u6790\u3001\u9010\u6b65\u90e8\u7f72\u548c\u76d1\u63a7\u751f\u4ea7\u73af\u5883\u7684\u7b56\u7565\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241027\/1729994205671d9dddafdd8.jpg\" class=\"aligncenter\" title=\"php\u51fd\u6570\u7248\u672c\u66f4\u65b0\u5bf9\u5927\u578b\u9879\u76ee\u7684\u6311\u6218\u548c\u89e3\u51b3\u65b9\u6848\u63d2\u56fe\" alt=\"php\u51fd\u6570\u7248\u672c\u66f4\u65b0\u5bf9\u5927\u578b\u9879\u76ee\u7684\u6311\u6218\u548c\u89e3\u51b3\u65b9\u6848\u63d2\u56fe\" \/><\/p>\n<p><strong>PHP \u51fd\u6570\u7248\u672c\u66f4\u65b0\u5bf9\u5927\u578b\u9879\u76ee\u7684\u6311\u6218\u548c\u89e3\u51b3\u65b9\u6848<\/strong><\/p>\n<p>\u5728\u5927\u578b PHP \u9879\u76ee\u4e2d\uff0c\u51fd\u6570\u7248\u672c\u66f4\u65b0\u662f\u4e00\u4e2a\u5e38\u89c1\u4e14\u5177\u6709\u6311\u6218\u6027\u7684\u4efb\u52a1\u3002\u4e0d\u517c\u5bb9\u6027\u95ee\u9898\u53ef\u80fd\u4f1a\u7834\u574f\u4ee3\u7801\u5e93\uff0c\u4ece\u800c\u5bfc\u81f4\u96be\u4ee5\u53d1\u73b0\u7684\u9519\u8bef\u3002\u4e86\u89e3\u8fd9\u4e9b\u6311\u6218\u5e76\u5236\u5b9a\u6709\u6548\u7684\u89e3\u51b3\u65b9\u6848\u5bf9\u4e8e\u786e\u4fdd\u9879\u76ee\u7684\u5e73\u7a33\u8fc7\u6e21\u81f3\u5173\u91cd\u8981\u3002<\/p>\n<p><strong>\u6311\u6218<\/strong><\/p>\n<ul>\n<li><strong>\u4e0d\u517c\u5bb9\u6027\u7684\u7834\u574f\u6027\u5f71\u54cd\uff1a<\/strong>\u51fd\u6570\u7248\u672c\u66f4\u65b0\u53ef\u80fd\u5bfc\u81f4\u53c2\u6570\u7b7e\u540d\u3001\u8fd4\u56de\u503c\u6216\u884c\u4e3a\u7684\u66f4\u6539\u3002\u8fd9\u4e9b\u66f4\u6539\u53ef\u80fd\u4f1a\u4f7f\u4f9d\u8d56\u4e8e\u8fd9\u4e9b\u51fd\u6570\u7684\u4ee3\u7801\u5931\u6548\u3002<\/li>\n<li><strong>\u5927\u578b\u4ee3\u7801\u5e93\u7684\u590d\u6742\u6027\uff1a<\/strong>\u5927\u578b\u9879\u76ee\u901a\u5e38\u5305\u542b\u6570\u5343\u884c\u4ee3\u7801\uff0c\u5176\u4e2d\u53ef\u80fd\u5e7f\u6cdb\u4f7f\u7528\u53d7\u5f71\u54cd\u7684\u51fd\u6570\u3002\u624b\u52a8\u8ddf\u8e2a\u548c\u66f4\u65b0\u6240\u6709\u53d7\u5f71\u54cd\u7684\u4ee3\u7801\u662f\u4e00\u9879\u8017\u65f6\u4e14\u5bb9\u6613\u51fa\u9519\u7684\u4efb\u52a1\u3002<\/li>\n<li><strong>\u6d4b\u8bd5\u548c\u9a8c\u8bc1\u7684\u5f00\u9500\uff1a<\/strong>\u66f4\u65b0\u540e\u7684\u51fd\u6570\u9700\u8981\u5168\u9762\u6d4b\u8bd5\uff0c\u4ee5\u786e\u4fdd\u5b83\u4eec\u6309\u9884\u671f\u5de5\u4f5c\u3002\u9a8c\u8bc1\u66f4\u65b0\u540e\u7684\u4ee3\u7801\u5e76\u6ca1\u6709\u7834\u574f\u73b0\u6709\u529f\u80fd\u4e5f\u81f3\u5173\u91cd\u8981\u3002<\/li>\n<\/ul>\n<p><strong>\u89e3\u51b3\u65b9\u6848<\/strong><\/p>\n<p><strong>1. \u6e10\u8fdb\u5f0f\u5347\u7ea7\u7b56\u7565<\/strong><\/p>\n<p>\u4f7f\u7528\u6e10\u8fdb\u5f0f\u5347\u7ea7\u7b56\u7565\uff0c\u9010\u6b65\u66f4\u65b0\u51fd\u6570\u7248\u672c\u3002\u8fd9\u53ef\u4ee5\u51cf\u5c11\u5bf9\u4ee3\u7801\u5e93\u7684\u7acb\u5373\u5f71\u54cd\uff0c\u5e76\u63d0\u4f9b\u66f4\u591a\u65f6\u95f4\u8fdb\u884c\u6d4b\u8bd5\u548c\u9a8c\u8bc1\u3002<\/p>\n<pre>\/\/ \u539f\u7248\u672c\nuse_function_v1();\n\n\/\/ \u8fc7\u6e21\u7248\u672c\ntry {\n    use_function_v2();\n} catch (\\Exception $e) {\n    \/\/ \u964d\u7ea7\u5230\u7248\u672c 1\n    use_function_v1();\n}<\/pre>\n<p><strong>2. \u5355\u5143\u6d4b\u8bd5\u548c\u96c6\u6210\u6d4b\u8bd5<\/strong><\/p>\n<p>\u7f16\u5199\u5355\u5143\u6d4b\u8bd5\u548c\u96c6\u6210\u6d4b\u8bd5\u6765\u9a8c\u8bc1\u53d7\u5f71\u54cd\u7684\u4ee3\u7801\u3002\u8fd9\u4e9b\u6d4b\u8bd5\u53ef\u4ee5\u81ea\u52a8\u8fd0\u884c\uff0c\u4ee5\u5feb\u901f\u8bc6\u522b\u4efb\u4f55\u4e0d\u517c\u5bb9\u6027\u95ee\u9898\u3002<\/p>\n<p><strong>3. \u4ee3\u7801\u9759\u6001\u5206\u6790<\/strong><\/p>\n<p>\u4f7f\u7528\u4ee3\u7801\u9759\u6001\u5206\u6790\u5de5\u5177\u6765\u68c0\u6d4b\u6f5c\u5728\u7684\u4e0d\u517c\u5bb9\u6027\u3002\u8fd9\u4e9b\u5de5\u5177\u53ef\u4ee5\u626b\u63cf\u4ee3\u7801\u5e93\u5e76\u8bc6\u522b\u5bf9\u53d7\u5f71\u54cd\u51fd\u6570\u7684\u8c03\u7528\uff0c\u4ece\u800c\u7a81\u51fa\u53ef\u80fd\u9700\u8981\u66f4\u65b0\u7684\u533a\u57df\u3002<\/p>\n<p><strong>4. \u7248\u672c\u63a7\u5236\u548c\u5206\u652f<\/strong><\/p>\n<p>\u5728\u66f4\u65b0\u51fd\u6570\u7248\u672c\u4e4b\u524d\uff0c\u521b\u5efa\u4ee3\u7801\u5e93\u7684\u5206\u652f\u3002\u8fd9\u5141\u8bb8\u5728\u51fa\u73b0\u95ee\u9898\u65f6\u8f7b\u677e\u56de\u6eda\u5230\u4e4b\u524d\u7684\u7248\u672c\u3002<\/p>\n<p><strong>5. \u4f9b\u5e94\u5546\u7ba1\u7406<\/strong><\/p>\n<p>\u5982\u679c\u66f4\u65b0\u540e\u7684\u51fd\u6570\u5c5e\u4e8e\u7b2c\u4e09\u65b9\u5e93\uff0c\u5219\u4f7f\u7528\u4f9b\u5e94\u5546\u7ba1\u7406\u5de5\u5177\uff08\u5982 Composer\uff09\u53ef\u4ee5\u8f7b\u677e\u66f4\u65b0\u8be5\u5e93\uff0c\u5e76\u81ea\u52a8\u66f4\u65b0\u5bf9\u53d7\u5f71\u54cd\u51fd\u6570\u7684\u4f9d\u8d56\u9879\u3002<\/p>\n<p><strong>\u5b9e\u6218\u6848\u4f8b<\/strong><\/p>\n<p>\u4f8b\u5982\uff0c\u5047\u8bbe\u6211\u4eec\u8981\u66f4\u65b0 PHP <code>array_map()<\/code> \u51fd\u6570\u7684\u7248\u672c\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n<ol>\n<li>\u521b\u5efa\u5206\u652f\u5e76\u66f4\u65b0\u51fd\u6570\u7248\u672c\u3002<\/li>\n<li>\u7f16\u5199\u5355\u5143\u6d4b\u8bd5\u548c\u96c6\u6210\u6d4b\u8bd5\u6765\u9a8c\u8bc1\u66f4\u6539\u3002<\/li>\n<li>\u4f7f\u7528\u4ee3\u7801\u9759\u6001\u5206\u6790\u5de5\u5177\u68c0\u6d4b\u4efb\u4f55\u4e0d\u517c\u5bb9\u6027\u3002<\/li>\n<li>\u9010\u6b65\u90e8\u7f72\u66f4\u65b0\uff0c\u4f7f\u7528\u6e10\u8fdb\u5f0f\u5347\u7ea7\u7b56\u7565\u6765\u6700\u5927\u9650\u5ea6\u51cf\u5c11\u5f71\u54cd\u3002<\/li>\n<li>\u4ed4\u7ec6\u76d1\u63a7\u751f\u4ea7\u73af\u5883\uff0c\u786e\u4fdd\u529f\u80fd\u672a\u53d7\u5230\u5f71\u54cd\u3002<\/li>\n<\/ol>\n<p>\u7ec8\u4e8e\u4ecb\u7ecd\u5b8c\u5566\uff01\u5c0f\u4f19\u4f34\u4eec\uff0c\u8fd9\u7bc7\u5173\u4e8e\u300aphp\u51fd\u6570\u7248\u672c\u66f4\u65b0\u5bf9\u5927\u578b\u9879\u76ee\u7684\u6311\u6218\u548c\u89e3\u51b3\u65b9\u6848\u300b\u7684\u4ecb\u7ecd\u5e94\u8be5\u8ba9\u4f60\u6536\u83b7\u591a\u591a\u4e86\u5427\uff01\u6b22\u8fce\u5927\u5bb6\u6536\u85cf\u6216\u5206\u4eab\u7ed9\u66f4\u591a\u9700\u8981\u5b66\u4e60\u7684\u670b\u53cb\u5427~\u7c73\u4e91\u516c\u4f17\u53f7\u4e5f\u4f1a\u53d1\u5e03\u6587\u7ae0\u76f8\u5173\u77e5\u8bc6\uff0c\u5feb\u6765\u5173\u6ce8\u5427\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>php\u51fd\u6570\u7248\u672c\u66f4\u65b0\u5bf9\u5927\u578b\u9879\u76ee\u7684\u6311\u6218\u548c\u89e3\u51b3\u65b9\u6848 \u5c0f\u4f19\u4f34\u4eec\u5bf9\u6587\u7ae0\u7f16\u7a0b\u611f\u5174\u8da3\u5417\uff1f\u662f\u5426\u6b63\u5728\u5b66\u4e60\u76f8\u5173\u77e5\u8bc6\u70b9\uff1f\u5982\u679c\u662f\uff0c\u90a3\u4e48\u672c\u6587\u300aphp\u51fd\u6570\u7248\u672c\u66f4\u65b0\u5bf9\u5927\u578b\u9879\u76ee\u7684\u6311\u6218\u548c\u89e3\u51b3\u65b9\u6848\u300b\uff0c\u5c31\u5f88\u9002\u5408\u4f60\uff0c\u672c\u7bc7\u6587\u7ae0\u8bb2\u89e3\u7684\u77e5\u8bc6\u70b9\u4e3b\u8981\u5305\u62ec\u3002\u5728\u4e4b\u540e\u7684\u6587\u7ae0\u4e2d\u4e5f\u4f1a\u591a\u591a\u5206\u4eab\u76f8\u5173\u77e5\u8bc6\u70b9\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u7684\u77e5\u8bc6\u79ef\u7d2f\u6709\u6240\u5e2e\u52a9\uff01 \u5927\u578b PHP \u9879\u76ee\u7684\u51fd\u6570\u7248\u672c\u66f4\u65b0\u5b58\u5728\u4e0d\u517c\u5bb9\u6027\u548c\u5927\u578b\u4ee3\u7801\u5e93\u590d\u6742\u6027\u7684\u6311\u6218\u3002\u89e3\u51b3\u65b9\u6848\u5305\u62ec\uff1a1\uff09\u6e10\u8fdb\u5f0f\u5347\u7ea7\u7b56\u7565\uff1b2\uff09\u5355\u5143\u6d4b\u8bd5\u548c\u96c6\u6210\u6d4b\u8bd5\uff1b3\uff09\u4ee3\u7801\u9759\u6001\u5206\u6790\uff1b4\uff09\u7248\u672c\u63a7\u5236\u548c\u5206\u652f\uff1b5\uff09\u4f9b\u5e94\u5546\u7ba1\u7406\u3002\u5b9e\u6218\u6848\u4f8b\uff1a\u66f4\u65b0 array_map() \u51fd\u6570\u65f6\uff0c\u91c7\u53d6\u521b\u5efa\u5206\u652f\u3001\u7f16\u5199\u6d4b\u8bd5\u3001\u4f7f\u7528\u9759\u6001\u5206\u6790\u3001\u9010\u6b65\u90e8\u7f72\u548c\u76d1\u63a7\u751f\u4ea7\u73af\u5883\u7684\u7b56\u7565\u3002 PHP \u51fd\u6570\u7248\u672c\u66f4\u65b0\u5bf9\u5927\u578b\u9879\u76ee\u7684\u6311\u6218\u548c\u89e3\u51b3\u65b9\u6848 \u5728\u5927\u578b PHP \u9879\u76ee\u4e2d\uff0c\u51fd\u6570\u7248\u672c\u66f4\u65b0\u662f\u4e00\u4e2a\u5e38\u89c1\u4e14\u5177\u6709\u6311\u6218\u6027\u7684\u4efb\u52a1\u3002\u4e0d\u517c\u5bb9\u6027\u95ee\u9898\u53ef\u80fd\u4f1a\u7834\u574f\u4ee3\u7801\u5e93\uff0c\u4ece\u800c\u5bfc\u81f4\u96be\u4ee5\u53d1\u73b0\u7684\u9519\u8bef\u3002\u4e86\u89e3\u8fd9\u4e9b\u6311\u6218\u5e76\u5236\u5b9a\u6709\u6548\u7684\u89e3\u51b3\u65b9\u6848\u5bf9\u4e8e\u786e\u4fdd\u9879\u76ee\u7684\u5e73\u7a33\u8fc7\u6e21\u81f3\u5173\u91cd\u8981\u3002 \u6311\u6218 \u4e0d\u517c\u5bb9\u6027\u7684\u7834\u574f\u6027\u5f71\u54cd\uff1a\u51fd\u6570\u7248\u672c\u66f4\u65b0\u53ef\u80fd\u5bfc\u81f4\u53c2\u6570\u7b7e\u540d\u3001\u8fd4\u56de\u503c\u6216\u884c\u4e3a\u7684\u66f4\u6539\u3002\u8fd9\u4e9b\u66f4\u6539\u53ef\u80fd\u4f1a\u4f7f\u4f9d\u8d56\u4e8e\u8fd9\u4e9b\u51fd\u6570\u7684\u4ee3\u7801\u5931\u6548\u3002 \u5927\u578b\u4ee3\u7801\u5e93\u7684\u590d\u6742\u6027\uff1a\u5927\u578b\u9879\u76ee\u901a\u5e38\u5305\u542b\u6570\u5343\u884c\u4ee3\u7801\uff0c\u5176\u4e2d\u53ef\u80fd\u5e7f\u6cdb\u4f7f\u7528\u53d7\u5f71\u54cd\u7684\u51fd\u6570\u3002\u624b\u52a8\u8ddf\u8e2a\u548c\u66f4\u65b0\u6240\u6709\u53d7\u5f71\u54cd\u7684\u4ee3\u7801\u662f\u4e00\u9879\u8017\u65f6\u4e14\u5bb9\u6613\u51fa\u9519\u7684\u4efb\u52a1\u3002 \u6d4b\u8bd5\u548c\u9a8c\u8bc1\u7684\u5f00\u9500\uff1a\u66f4\u65b0\u540e\u7684\u51fd\u6570\u9700\u8981\u5168\u9762\u6d4b\u8bd5\uff0c\u4ee5\u786e\u4fdd\u5b83\u4eec\u6309\u9884\u671f\u5de5\u4f5c\u3002\u9a8c\u8bc1\u66f4\u65b0\u540e\u7684\u4ee3\u7801\u5e76\u6ca1\u6709\u7834\u574f\u73b0\u6709\u529f\u80fd\u4e5f\u81f3\u5173\u91cd\u8981\u3002 \u89e3\u51b3\u65b9\u6848 1. \u6e10\u8fdb\u5f0f\u5347\u7ea7\u7b56\u7565 \u4f7f\u7528\u6e10\u8fdb\u5f0f\u5347\u7ea7\u7b56\u7565\uff0c\u9010\u6b65\u66f4\u65b0\u51fd\u6570\u7248\u672c\u3002\u8fd9\u53ef\u4ee5\u51cf\u5c11\u5bf9\u4ee3\u7801\u5e93\u7684\u7acb\u5373\u5f71\u54cd\uff0c\u5e76\u63d0\u4f9b\u66f4\u591a\u65f6\u95f4\u8fdb\u884c\u6d4b\u8bd5\u548c\u9a8c\u8bc1\u3002 \/\/ \u539f\u7248\u672c use_function_v1(); \/\/ \u8fc7\u6e21\u7248\u672c try { use_function_v2(); } catch (\\Exception $e) { \/\/ \u964d\u7ea7\u5230\u7248\u672c 1 use_function_v1(); } 2. \u5355\u5143\u6d4b\u8bd5\u548c\u96c6\u6210\u6d4b\u8bd5 \u7f16\u5199\u5355\u5143\u6d4b\u8bd5\u548c\u96c6\u6210\u6d4b\u8bd5\u6765\u9a8c\u8bc1\u53d7\u5f71\u54cd\u7684\u4ee3\u7801\u3002\u8fd9\u4e9b\u6d4b\u8bd5\u53ef\u4ee5\u81ea\u52a8\u8fd0\u884c\uff0c\u4ee5\u5feb\u901f\u8bc6\u522b\u4efb\u4f55\u4e0d\u517c\u5bb9\u6027\u95ee\u9898\u3002 3. \u4ee3\u7801\u9759\u6001\u5206\u6790 \u4f7f\u7528\u4ee3\u7801\u9759\u6001\u5206\u6790\u5de5\u5177\u6765\u68c0\u6d4b\u6f5c\u5728\u7684\u4e0d\u517c\u5bb9\u6027\u3002\u8fd9\u4e9b\u5de5\u5177\u53ef\u4ee5\u626b\u63cf\u4ee3\u7801\u5e93\u5e76\u8bc6\u522b\u5bf9\u53d7\u5f71\u54cd\u51fd\u6570\u7684\u8c03\u7528\uff0c\u4ece\u800c\u7a81\u51fa\u53ef\u80fd\u9700\u8981\u66f4\u65b0\u7684\u533a\u57df\u3002 4. \u7248\u672c\u63a7\u5236\u548c\u5206\u652f \u5728\u66f4\u65b0\u51fd\u6570\u7248\u672c\u4e4b\u524d\uff0c\u521b\u5efa\u4ee3\u7801\u5e93\u7684\u5206\u652f\u3002\u8fd9\u5141\u8bb8\u5728\u51fa\u73b0\u95ee\u9898\u65f6\u8f7b\u677e\u56de\u6eda\u5230\u4e4b\u524d\u7684\u7248\u672c\u3002 5. \u4f9b\u5e94\u5546\u7ba1\u7406 \u5982\u679c\u66f4\u65b0\u540e\u7684\u51fd\u6570\u5c5e\u4e8e\u7b2c\u4e09\u65b9\u5e93\uff0c\u5219\u4f7f\u7528\u4f9b\u5e94\u5546\u7ba1\u7406\u5de5\u5177\uff08\u5982 Composer\uff09\u53ef\u4ee5\u8f7b\u677e\u66f4\u65b0\u8be5\u5e93\uff0c\u5e76\u81ea\u52a8\u66f4\u65b0\u5bf9\u53d7\u5f71\u54cd\u51fd\u6570\u7684\u4f9d\u8d56\u9879\u3002 \u5b9e\u6218\u6848\u4f8b \u4f8b\u5982\uff0c\u5047\u8bbe\u6211\u4eec\u8981\u66f4\u65b0 PHP array_map() [&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-48165","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/48165","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=48165"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/48165\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=48165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=48165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=48165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}