{"id":48033,"date":"2024-12-02T11:07:52","date_gmt":"2024-12-02T03:07:52","guid":{"rendered":"https:\/\/fwq.ai\/blog\/48033\/"},"modified":"2024-12-02T11:07:52","modified_gmt":"2024-12-02T03:07:52","slug":"php%e5%87%bd%e6%95%b0%e5%bc%82%e5%b8%b8%e5%a4%84%e7%90%86%e7%9a%84%e5%85%b8%e5%9e%8b%e9%94%99%e8%af%af%e5%92%8c%e5%af%b9%e5%ba%94%e7%ad%96%e7%95%a5","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/48033\/","title":{"rendered":"php\u51fd\u6570\u5f02\u5e38\u5904\u7406\u7684\u5178\u578b\u9519\u8bef\u548c\u5bf9\u5e94\u7b56\u7565"},"content":{"rendered":"<p><b><\/b> <\/p>\n<h1>php\u51fd\u6570\u5f02\u5e38\u5904\u7406\u7684\u5178\u578b\u9519\u8bef\u548c\u5bf9\u5e94\u7b56\u7565<\/h1>\n<p>\u5c0f\u4f19\u4f34\u4eec\u6709\u6ca1\u6709\u89c9\u5f97\u5b66\u4e60<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u6587\u7ae0<\/span>\u5f88\u6709\u610f\u601d\uff1f\u6709\u610f\u601d\u5c31\u5bf9\u4e86\uff01\u4eca\u5929\u5c31\u7ed9\u5927\u5bb6\u5e26\u6765<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300aphp\u51fd\u6570\u5f02\u5e38\u5904\u7406\u7684\u5178\u578b\u9519\u8bef\u548c\u5bf9\u5e94\u7b56\u7565\u300b<\/span>\uff0c\u4ee5\u4e0b\u5185\u5bb9\u5c06\u4f1a\u6d89\u53ca\u5230<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\uff0c\u82e5\u662f\u5728\u5b66\u4e60\u4e2d\u5bf9\u5176\u4e2d\u90e8\u5206\u77e5\u8bc6\u70b9\u6709\u7591\u95ee\uff0c\u6216\u8bb8\u770b\u4e86\u672c\u6587\u5c31\u80fd\u5e2e\u5230\u4f60\uff01<\/p>\n<p>PHP \u51fd\u6570\u5f02\u5e38\u5904\u7406\u7684\u5178\u578b\u9519\u8bef\u5305\u62ec\u672a\u6355\u83b7\u7684\u5f02\u5e38\u3001\u672a\u533a\u5206\u5f02\u5e38\u7c7b\u578b\u548c\u8fc7\u5ea6\u6355\u83b7\u5f02\u5e38\u3002\u5e94\u5bf9\u7b56\u7565\u4f9d\u6b21\u4e3a\uff1a\u4f7f\u7528 try&#8230;catch&#8230;finally \u8bed\u53e5\u6355\u83b7\u5f02\u5e38\u3001\u4f7f\u7528 catch (\\TypeException $e) \u8bed\u6cd5\u6307\u5b9a\u660e\u786e\u5f02\u5e38\u7c7b\u578b\u3001\u4ec5\u5728\u9700\u8981\u65f6\u6355\u83b7\u7279\u5b9a\u5f02\u5e38\u7c7b\u578b\u3002\u8fd9\u4e9b\u7b56\u7565\u6709\u52a9\u4e8e\u786e\u4fdd\u5e94\u7528\u7a0b\u5e8f\u5bf9\u5f02\u5e38\u60c5\u51b5\u505a\u51fa\u4f18\u96c5\u53ef\u9760\u7684\u54cd\u5e94\uff0c\u63d0\u9ad8\u7a33\u5b9a\u6027\u3002\u540c\u65f6\uff0c\u672c\u6587\u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5b9e\u6218\u6848\u4f8b\uff0c\u5c55\u793a\u4e86\u5f02\u5e38\u5904\u7406\u5728\u6570\u636e\u9a8c\u8bc1\u4e2d\u7684\u5e94\u7528\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241026\/1729950639671cf3af89f81.jpg\" class=\"aligncenter\" title=\"php\u51fd\u6570\u5f02\u5e38\u5904\u7406\u7684\u5178\u578b\u9519\u8bef\u548c\u5bf9\u5e94\u7b56\u7565\u63d2\u56fe\" alt=\"php\u51fd\u6570\u5f02\u5e38\u5904\u7406\u7684\u5178\u578b\u9519\u8bef\u548c\u5bf9\u5e94\u7b56\u7565\u63d2\u56fe\" \/><\/p>\n<p><strong>PHP \u51fd\u6570\u5f02\u5e38\u5904\u7406\u7684\u5178\u578b\u9519\u8bef\u548c\u5e94\u5bf9\u7b56\u7565<\/strong><\/p>\n<p><strong>\u5f15\u8a00<\/strong><\/p>\n<p>\u5f02\u5e38\u5904\u7406\u662f\u73b0\u4ee3\u7f16\u7a0b\u4e2d\u4e0d\u53ef\u6216\u7f3a\u7684\u4e00\u90e8\u5206\uff0c\u5b83\u4f7f\u6211\u4eec\u80fd\u591f\u4f18\u96c5\u5730\u5904\u7406\u610f\u5916\u60c5\u51b5\uff0c\u786e\u4fdd\u5e94\u7528\u7a0b\u5e8f\u7684\u7a33\u5b9a\u6027\u548c\u53ef\u9760\u6027\u3002\u5728 PHP \u4e2d\uff0c\u5f02\u5e38\u5904\u7406\u673a\u5236\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u660e\u786e\u9519\u8bef\u6761\u4ef6\u5e76\u91c7\u53d6\u9002\u5f53\u63aa\u65bd\u3002\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u63a2\u8ba8 PHP \u51fd\u6570\u5f02\u5e38\u5904\u7406\u7684\u5178\u578b\u9519\u8bef\uff0c\u5e76\u63d0\u4f9b\u76f8\u5e94\u7684\u7b56\u7565\u6765\u89e3\u51b3\u5b83\u4eec\u3002<\/p>\n<p><strong>\u9519\u8bef 1\uff1a\u672a\u6355\u83b7\u7684\u5f02\u5e38<\/strong><\/p>\n<p><strong>\u4ee3\u7801\u793a\u4f8b\uff1a<\/strong><\/p>\n<pre>function divide(int $a, int $b): float\n{\n    return $a \/ $b;\n}\n\ntry {\n    \/\/ \u7f3a\u5c11\u5f02\u5e38\u6355\u83b7\u673a\u5236\n    $result = divide(10, 0);\n} catch (\\Exception $e) {\n    \/\/ TODO: \u5904\u7406\u5f02\u5e38\n}<\/pre>\n<p><strong>\u9519\u8bef\u8bf4\u660e\uff1a<\/strong><br \/>\u672a\u6355\u83b7\u7684\u5f02\u5e38\u4f1a\u5bfc\u81f4\u811a\u672c\u7ec8\u6b62\u5e76\u663e\u793a\u4e00\u6761\u53ef\u914d\u7f6e\u7684\u9519\u8bef\u6d88\u606f\u3002\u5982\u679c\u5f02\u5e38\u5904\u7406\u673a\u5236\u4e0d\u5b58\u5728\uff0c\u5e94\u7528\u7a0b\u5e8f\u5c06\u65e0\u6cd5\u5bf9\u5f02\u5e38\u60c5\u51b5\u505a\u51fa\u6070\u5f53\u7684\u54cd\u5e94\u3002<\/p>\n<p><strong>\u5e94\u5bf9\u7b56\u7565\uff1a<\/strong><br \/>\u4f7f\u7528 <code>try...catch...finally<\/code> \u8bed\u53e5\u6765\u6355\u83b7\u5f02\u5e38\uff0c\u5e76\u5728 <code>catch<\/code> \u5757\u5185\u5904\u7406\u5f02\u5e38\u3002\u4f8b\u5982\uff1a<\/p>\n<pre>try {\n    $result = divide(10, 0);\n} catch (\\DivisionByZeroError $e) {\n    \/\/ \u5904\u7406\u9664\u96f6\u5f02\u5e38\n} finally {\n    \/\/ \u6e05\u7406\u64cd\u4f5c\uff0c\u65e0\u8bba\u662f\u5426\u53d1\u751f\u5f02\u5e38\u90fd\u6267\u884c\n}<\/pre>\n<p><strong>\u9519\u8bef 2\uff1a\u672a\u533a\u5206\u5f02\u5e38\u7c7b\u578b<\/strong><\/p>\n<p><strong>\u4ee3\u7801\u793a\u4f8b\uff1a<\/strong><\/p>\n<pre>function divide(int $a, int $b): float\n{\n    return $a \/ $b;\n}\n\ntry {\n    \/\/ \u4ec5\u6355\u83b7 Exception \u5bf9\u8c61\uff0c\u672a\u533a\u5206\u5f02\u5e38\u7c7b\u578b\n    $result = divide(10, 0);\n} catch (\\Exception $e) {\n    \/\/ \u901a\u7528\u5f02\u5e38\u5904\u7406\u903b\u8f91\n}<\/pre>\n<p><strong>\u9519\u8bef\u8bf4\u660e\uff1a<\/strong><br \/>\u672a\u533a\u5206\u5f02\u5e38\u7c7b\u578b\u4f1a\u5bfc\u81f4\u96be\u4ee5\u6839\u636e\u7279\u5b9a\u5f02\u5e38\u60c5\u51b5\u91c7\u53d6\u9002\u5f53\u7684\u884c\u52a8\u3002\u4f8b\u5982\uff0c\u9664\u96f6\u9519\u8bef\u5e94\u8be5\u4ee5\u4e0d\u540c\u7684\u65b9\u5f0f\u5904\u7406\uff0c\u800c\u4e0d\u662f\u5176\u4ed6\u7c7b\u578b\u7684\u5f02\u5e38\u3002<\/p>\n<p><strong>\u5e94\u5bf9\u7b56\u7565\uff1a<\/strong><br \/>\u4f7f\u7528 <code>catch (\\TypeException $e)<\/code> \u8bed\u6cd5\u6307\u5b9a\u660e\u786e\u7684\u5f02\u5e38\u7c7b\u578b\uff0c\u4ee5\u5206\u522b\u5904\u7406\u4e0d\u540c\u7c7b\u578b\u7684\u5f02\u5e38\u3002\u4f8b\u5982\uff1a<\/p>\n<pre>function divide(int $a, int $b): float\n{\n    return $a \/ $b;\n}\n\ntry {\n    $result = divide(10, 0);\n} catch (\\DivisionByZeroError $e) {\n    \/\/ \u5904\u7406\u9664\u96f6\u5f02\u5e38\n} catch (\\Exception $e) {\n    \/\/ \u5904\u7406\u5176\u4ed6\u5f02\u5e38\u7c7b\u578b\n}<\/pre>\n<p><strong>\u9519\u8bef 3\uff1a\u8fc7\u5ea6\u6355\u83b7\u5f02\u5e38<\/strong><\/p>\n<p><strong>\u4ee3\u7801\u793a\u4f8b\uff1a<\/strong><\/p>\n<pre>try {\n    \/\/ \u6355\u83b7\u6240\u6709\u7c7b\u578b\u7684\u5f02\u5e38\n    throw new \\Exception('\u81ea\u5b9a\u4e49\u5f02\u5e38');\n} catch (\\Throwable $e) {\n    \/\/ \u5904\u7406\u6240\u6709\u7c7b\u578b\u7684\u5f02\u5e38\n}<\/pre>\n<p><strong>\u9519\u8bef\u8bf4\u660e\uff1a<\/strong><br \/>\u8fc7\u5ea6\u6355\u83b7\u5f02\u5e38\u4f1a\u9690\u85cf\u5b9e\u9645\u7684\u5f02\u5e38\u5806\u6808\uff0c\u4f7f\u8c03\u8bd5\u548c\u8ddf\u8e2a\u5f02\u5e38\u6765\u6e90\u53d8\u5f97\u56f0\u96be\u3002<\/p>\n<p><strong>\u5e94\u5bf9\u7b56\u7565\uff1a<\/strong><br \/>\u4ec5\u5728\u9700\u8981\u65f6\u6355\u83b7\u7279\u5b9a\u7684\u5f02\u5e38\u7c7b\u578b\uff0c\u5e76\u5141\u8bb8\u5176\u4ed6\u5f02\u5e38\u5411\u4e0a\u4f20\u64ad\u5230\u66f4\u9ad8\u5c42\u6b21\u7684\u5904\u7406\u7a0b\u5e8f\u6216\u5f02\u5e38\u65e5\u5fd7\u8bb0\u5f55\u7cfb\u7edf\u3002<\/p>\n<p><strong>\u5b9e\u6218\u6848\u4f8b\uff1a<\/strong><\/p>\n<p>\u8003\u8651\u4e00\u4e2a\u5c06\u7528\u6237\u8f93\u5165\u7684\u6570\u636e\u5b58\u50a8\u5230\u6570\u636e\u5e93\u4e2d\u7684\u811a\u672c\u3002\u4e3a\u4e86\u786e\u4fdd\u8f93\u5165\u6709\u6548\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u51fd\u6570\u9a8c\u8bc1\u8f93\u5165\uff1a<\/p>\n<pre>function validateInput(string $input): bool\n{\n    if (empty($input)) {\n        throw new \\InvalidArgumentException('\u8f93\u5165\u4e0d\u80fd\u4e3a\u7a7a');\n    }\n\n    if (!preg_match('\/^[a-zA-Z0-9_-]+$\/', $input)) {\n        throw new \\DomainException('\u8f93\u5165\u53ea\u80fd\u5305\u542b\u5b57\u6bcd\u3001\u6570\u5b57\u3001\u4e0b\u5212\u7ebf\u548c\u8fde\u5b57\u7b26');\n    }\n\n    \/\/ \u5176\u4ed6\u9a8c\u8bc1\u903b\u8f91...\n\n    return true;\n}<\/pre>\n<p>\u7136\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 <code>try...catch<\/code> \u5757\u6765\u6355\u83b7\u9a8c\u8bc1\u8fc7\u7a0b\u4e2d\u7684\u4efb\u4f55\u5f02\u5e38\u5e76\u63d0\u4f9b\u6070\u5f53\u7684\u9519\u8bef\u6d88\u606f\uff1a<\/p>\n<pre>try {\n    $validatedInput = validateInput($_POST['input']);\n} catch (\\InvalidArgumentException $e) {\n    \/\/ \u5904\u7406\u65e0\u6548\u8f93\u5165\u5f02\u5e38\n} catch (\\DomainException $e) {\n    \/\/ \u5904\u7406\u8f93\u5165\u683c\u5f0f\u4e0d\u6b63\u786e\u7684\u5f02\u5e38\n}<\/pre>\n<p><strong>\u7ed3\u8bba<\/strong><\/p>\n<p>\u5f02\u5e38\u5904\u7406\u662f PHP \u7f16\u7a0b\u4e2d\u81f3\u5173\u91cd\u8981\u7684\uff0c\u901a\u8fc7\u89e3\u51b3\u5e38\u89c1\u7684\u9519\u8bef\uff0c\u6211\u4eec\u53ef\u4ee5\u786e\u4fdd\u5e94\u7528\u7a0b\u5e8f\u5bf9\u5f02\u5e38\u60c5\u51b5\u505a\u51fa\u4f18\u96c5\u53ef\u9760\u7684\u54cd\u5e94\u3002\u901a\u8fc7\u4f7f\u7528 <code>try...catch...finally<\/code>\uff0c\u533a\u5206\u5f02\u5e38\u7c7b\u578b\u4ee5\u53ca\u907f\u514d\u8fc7\u5ea6\u6355\u83b7\uff0c\u6211\u4eec\u53ef\u4ee5\u6709\u6548\u5730\u5904\u7406\u5f02\u5e38\u5e76\u63d0\u9ad8\u5e94\u7528\u7a0b\u5e8f\u7684\u7a33\u5b9a\u6027\u3002<\/p>\n<p>\u4eca\u5929\u5173\u4e8e\u300aphp\u51fd\u6570\u5f02\u5e38\u5904\u7406\u7684\u5178\u578b\u9519\u8bef\u548c\u5bf9\u5e94\u7b56\u7565\u300b\u7684\u5185\u5bb9\u4ecb\u7ecd\u5c31\u5230\u6b64\u7ed3\u675f\uff0c\u5982\u679c\u6709\u4ec0\u4e48\u7591\u95ee\u6216\u8005\u5efa\u8bae\uff0c\u53ef\u4ee5\u5728\u7c73\u4e91\u516c\u4f17\u53f7\u4e0b\u591a\u591a\u56de\u590d\u4ea4\u6d41\uff1b\u6587\u4e2d\u82e5\u6709\u4e0d\u6b63\u4e4b\u5904\uff0c\u4e5f\u5e0c\u671b\u56de\u590d\u7559\u8a00\u4ee5\u544a\u77e5\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>php\u51fd\u6570\u5f02\u5e38\u5904\u7406\u7684\u5178\u578b\u9519\u8bef\u548c\u5bf9\u5e94\u7b56\u7565 \u5c0f\u4f19\u4f34\u4eec\u6709\u6ca1\u6709\u89c9\u5f97\u5b66\u4e60\u6587\u7ae0\u5f88\u6709\u610f\u601d\uff1f\u6709\u610f\u601d\u5c31\u5bf9\u4e86\uff01\u4eca\u5929\u5c31\u7ed9\u5927\u5bb6\u5e26\u6765\u300aphp\u51fd\u6570\u5f02\u5e38\u5904\u7406\u7684\u5178\u578b\u9519\u8bef\u548c\u5bf9\u5e94\u7b56\u7565\u300b\uff0c\u4ee5\u4e0b\u5185\u5bb9\u5c06\u4f1a\u6d89\u53ca\u5230\uff0c\u82e5\u662f\u5728\u5b66\u4e60\u4e2d\u5bf9\u5176\u4e2d\u90e8\u5206\u77e5\u8bc6\u70b9\u6709\u7591\u95ee\uff0c\u6216\u8bb8\u770b\u4e86\u672c\u6587\u5c31\u80fd\u5e2e\u5230\u4f60\uff01 PHP \u51fd\u6570\u5f02\u5e38\u5904\u7406\u7684\u5178\u578b\u9519\u8bef\u5305\u62ec\u672a\u6355\u83b7\u7684\u5f02\u5e38\u3001\u672a\u533a\u5206\u5f02\u5e38\u7c7b\u578b\u548c\u8fc7\u5ea6\u6355\u83b7\u5f02\u5e38\u3002\u5e94\u5bf9\u7b56\u7565\u4f9d\u6b21\u4e3a\uff1a\u4f7f\u7528 try&#8230;catch&#8230;finally \u8bed\u53e5\u6355\u83b7\u5f02\u5e38\u3001\u4f7f\u7528 catch (\\TypeException $e) \u8bed\u6cd5\u6307\u5b9a\u660e\u786e\u5f02\u5e38\u7c7b\u578b\u3001\u4ec5\u5728\u9700\u8981\u65f6\u6355\u83b7\u7279\u5b9a\u5f02\u5e38\u7c7b\u578b\u3002\u8fd9\u4e9b\u7b56\u7565\u6709\u52a9\u4e8e\u786e\u4fdd\u5e94\u7528\u7a0b\u5e8f\u5bf9\u5f02\u5e38\u60c5\u51b5\u505a\u51fa\u4f18\u96c5\u53ef\u9760\u7684\u54cd\u5e94\uff0c\u63d0\u9ad8\u7a33\u5b9a\u6027\u3002\u540c\u65f6\uff0c\u672c\u6587\u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5b9e\u6218\u6848\u4f8b\uff0c\u5c55\u793a\u4e86\u5f02\u5e38\u5904\u7406\u5728\u6570\u636e\u9a8c\u8bc1\u4e2d\u7684\u5e94\u7528\u3002 PHP \u51fd\u6570\u5f02\u5e38\u5904\u7406\u7684\u5178\u578b\u9519\u8bef\u548c\u5e94\u5bf9\u7b56\u7565 \u5f15\u8a00 \u5f02\u5e38\u5904\u7406\u662f\u73b0\u4ee3\u7f16\u7a0b\u4e2d\u4e0d\u53ef\u6216\u7f3a\u7684\u4e00\u90e8\u5206\uff0c\u5b83\u4f7f\u6211\u4eec\u80fd\u591f\u4f18\u96c5\u5730\u5904\u7406\u610f\u5916\u60c5\u51b5\uff0c\u786e\u4fdd\u5e94\u7528\u7a0b\u5e8f\u7684\u7a33\u5b9a\u6027\u548c\u53ef\u9760\u6027\u3002\u5728 PHP \u4e2d\uff0c\u5f02\u5e38\u5904\u7406\u673a\u5236\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u660e\u786e\u9519\u8bef\u6761\u4ef6\u5e76\u91c7\u53d6\u9002\u5f53\u63aa\u65bd\u3002\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u63a2\u8ba8 PHP \u51fd\u6570\u5f02\u5e38\u5904\u7406\u7684\u5178\u578b\u9519\u8bef\uff0c\u5e76\u63d0\u4f9b\u76f8\u5e94\u7684\u7b56\u7565\u6765\u89e3\u51b3\u5b83\u4eec\u3002 \u9519\u8bef 1\uff1a\u672a\u6355\u83b7\u7684\u5f02\u5e38 \u4ee3\u7801\u793a\u4f8b\uff1a function divide(int $a, int $b): float { return $a \/ $b; } try { \/\/ \u7f3a\u5c11\u5f02\u5e38\u6355\u83b7\u673a\u5236 $result = divide(10, 0); } catch (\\Exception $e) { \/\/ TODO: \u5904\u7406\u5f02\u5e38 } \u9519\u8bef\u8bf4\u660e\uff1a\u672a\u6355\u83b7\u7684\u5f02\u5e38\u4f1a\u5bfc\u81f4\u811a\u672c\u7ec8\u6b62\u5e76\u663e\u793a\u4e00\u6761\u53ef\u914d\u7f6e\u7684\u9519\u8bef\u6d88\u606f\u3002\u5982\u679c\u5f02\u5e38\u5904\u7406\u673a\u5236\u4e0d\u5b58\u5728\uff0c\u5e94\u7528\u7a0b\u5e8f\u5c06\u65e0\u6cd5\u5bf9\u5f02\u5e38\u60c5\u51b5\u505a\u51fa\u6070\u5f53\u7684\u54cd\u5e94\u3002 \u5e94\u5bf9\u7b56\u7565\uff1a\u4f7f\u7528 try&#8230;catch&#8230;finally \u8bed\u53e5\u6765\u6355\u83b7\u5f02\u5e38\uff0c\u5e76\u5728 catch [&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-48033","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/48033","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=48033"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/48033\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=48033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=48033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=48033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}