{"id":22464,"date":"2024-11-21T15:19:09","date_gmt":"2024-11-21T07:19:09","guid":{"rendered":"https:\/\/fwq.ai\/blog\/22464\/"},"modified":"2024-11-21T15:19:09","modified_gmt":"2024-11-21T07:19:09","slug":"thinkphp-%e6%95%b0%e7%bb%84%e6%9b%bf%e6%8d%a2%e5%85%a8%e9%9d%a2%e8%a7%a3%e6%9e%90","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/22464\/","title":{"rendered":"ThinkPHP \u6570\u7ec4\u66ff\u6362\u5168\u9762\u89e3\u6790"},"content":{"rendered":"<p>\u5728\u7f16\u5199 php \u7a0b\u5e8f\u65f6\uff0c\u5904\u7406\u6570\u7ec4\u662f\u4e00\u4e2a\u5e38\u89c1\u7684\u4efb\u52a1\u3002\u5728 thinkphp \u9879\u76ee\u4e2d\uff0c\u7ecf\u5e38\u9700\u8981\u5bf9\u6570\u7ec4\u4e2d\u7684\u67d0\u4e9b\u503c\u8fdb\u884c\u66ff\u6362\uff0c\u4f8b\u5982\u5c06\u6570\u7ec4\u4e2d\u6240\u6709\u7684\u7a7a\u5b57\u7b26\u4e32\uff08&#8221;\uff09\u66ff\u6362\u4e3a null\u3002\u672c\u6587\u5c06\u4e3a\u5927\u5bb6\u4ecb\u7ecd thinkphp \u4e2d\u7684\u591a\u79cd\u6570\u7ec4\u66ff\u6362\u65b9\u6cd5\u3002<\/p>\n<p>\u4e00\u3001\u666e\u901a\u6570\u7ec4\u66ff\u6362<\/p>\n<p>\u9996\u5148\uff0c\u6211\u4eec\u6765\u770b\u4e00\u4e0b\u666e\u901a\u6570\u7ec4\u7684\u66ff\u6362\u65b9\u6cd5\u3002\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u6570\u7ec4 $arr\uff0c\u5176\u4e2d\u5305\u542b\u56db\u4e2a\u5143\u7d20\uff1a<\/p>\n<p>$arr = array(<\/p>\n<pre>'name' =&gt; '\u5f20\u4e09',\n'age' =&gt; 18,\n'email' =&gt; 'zhangsan@example.com',\n'gender' =&gt; '\u7537',<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>);<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<p>\u5982\u679c\u6211\u4eec\u60f3\u5c06\u6570\u7ec4\u4e2d\u6240\u6709\u7684\u7a7a\u5b57\u7b26\u4e32\u66ff\u6362\u4e3a null\uff0c\u53ef\u4ee5\u4f7f\u7528 foreach \u5faa\u73af\u904d\u5386\u6570\u7ec4\uff0c\u5bf9\u6bcf\u4e2a\u5143\u7d20\u8fdb\u884c\u66ff\u6362\u3002\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<p>foreach ($arr as &amp;$value) {<\/p>\n<pre>if ($value === '') {\n    $value = null;\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>}<\/p>\n<p>\u5176\u4e2d\uff0c&amp;$value \u8868\u793a\u5bf9\u6570\u7ec4\u5143\u7d20\u7684\u5f15\u7528\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u76f4\u63a5\u4fee\u6539\u539f\u6570\u7ec4\u3002\u8fd0\u884c\u4e0a\u8ff0\u4ee3\u7801\u540e\uff0c$arr \u7684\u503c\u4f1a\u53d8\u6210\uff1a<\/p>\n<p>array(<\/p>\n<pre>'name' =&gt; '\u5f20\u4e09',\n'age' =&gt; 18,\n'email' =&gt; 'zhangsan@example.com',\n'gender' =&gt; '\u7537',<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>);<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<p>\u5982\u679c\u60f3\u8981\u66ff\u6362\u6307\u5b9a\u952e\u540d\u7684\u503c\uff0c\u53ef\u4ee5\u5728\u5faa\u73af\u4e2d\u6dfb\u52a0\u6761\u4ef6\u5224\u65ad\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<p>foreach ($arr as $key =&gt; &amp;$value) {<\/p>\n<pre>if ($key === 'email' &amp;&amp; $value === 'zhangsan@example.com') {\n    $value = 'lisi@example.com';\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>}<\/p>\n<p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u9488\u5bf9 email \u952e\u540d\u7684\u503c\u8fdb\u884c\u4e86\u66ff\u6362\uff0c\u5373\u5c06 &#8216;zhangsan@example.com&#8217; \u66ff\u6362\u4e3a &#8216;lisi@example.com&#8217;\uff0c\u5982\u679c\u8fd0\u884c\u8be5\u4ee3\u7801\uff0c$arr \u7684\u503c\u5c06\u53d8\u4e3a\uff1a<\/p>\n<p>array(<\/p>\n<pre>'name' =&gt; '\u5f20\u4e09',\n'age' =&gt; 18,\n'email' =&gt; 'lisi@example.com',\n'gender' =&gt; '\u7537',<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>);<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<p>\u4f46\u8fd9\u79cd\u65b9\u6cd5\u6709\u4e00\u4e2a\u7f3a\u70b9\uff0c\u5982\u679c\u6570\u7ec4\u8f83\u5927\uff0c\u4f7f\u7528\u5faa\u73af\u8fdb\u884c\u904d\u5386\u66ff\u6362\u7684\u6548\u7387\u4f1a\u5f88\u4f4e\u3002\u6240\u4ee5\u6211\u4eec\u9700\u8981\u627e\u5230\u66f4\u52a0\u9ad8\u6548\u7684\u66ff\u6362\u65b9\u6cd5\u3002<\/p>\n<p>\u4e8c\u3001\u9012\u5f52\u6570\u7ec4\u66ff\u6362<\/p>\n<p>\u5982\u679c\u6211\u4eec\u9700\u8981\u5bf9\u4e00\u4e2a\u591a\u7ef4\u6570\u7ec4\u4e2d\u7684\u6240\u6709\u7a7a\u5b57\u7b26\u4e32\u66ff\u6362\u4e3a null\uff0c\u90a3\u4e48\u4f7f\u7528\u5faa\u73af\u5df2\u7ecf\u65e0\u6cd5\u80dc\u4efb\u4e86\u3002\u8fd9\u65f6\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u9012\u5f52\u7684\u65b9\u6cd5\uff0c\u904d\u5386\u6574\u4e2a\u6570\u7ec4\uff0c\u5bf9\u6bcf\u4e2a\u5b50\u6570\u7ec4\u518d\u8fdb\u884c\u9012\u5f52\uff0c\u76f4\u5230\u627e\u5230\u6700\u57fa\u672c\u7684\u5143\u7d20\u8fdb\u884c\u66ff\u6362\u3002<\/p>\n<p>\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<p>function array_replace_recursive_null($arr) {<\/p>\n<pre>foreach ($arr as $key =&gt; &amp;$value) {\n    if (is_array($value)) {\n        $value = array_replace_recursive_null($value);\n    } elseif ($value === '') {\n        $value = null;\n    }\n}\nreturn $arr;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>}<\/p>\n<p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5224\u65ad\u5f53\u524d\u5143\u7d20\u662f\u5426\u662f\u6570\u7ec4\uff0c\u5982\u679c\u662f\uff0c\u5219\u9012\u5f52\u8c03\u7528\u51fd\u6570 array_replace_recursive_null() \u8fdb\u884c\u66ff\u6362\uff0c\u5982\u679c\u4e0d\u662f\uff0c\u5219\u5224\u65ad\u5f53\u524d\u5143\u7d20\u662f\u5426\u4e3a\u7a7a\u5b57\u7b26\u4e32\uff0c\u5982\u679c\u662f\uff0c\u5219\u5c06\u5176\u66ff\u6362\u4e3a null\u3002<\/p>\n<p>\u4f7f\u7528\u8be5\u51fd\u6570\u5bf9\u6570\u7ec4\u8fdb\u884c\u66ff\u6362\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<p>$arr = array(<\/p>\n<pre>'name' =&gt; '\u5f20\u4e09',\n'age' =&gt; 18,\n'contact' =&gt; array(\n    'email' =&gt; 'zhangsan@example.com',\n    'phone' =&gt; '',\n    'address' =&gt; array(\n        'province' =&gt; '\u5e7f\u4e1c\u7701',\n        'city' =&gt; '',\n        'district' =&gt; '\u756a\u79ba\u533a',\n    ),\n),<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>);<br \/>$arr = array_replace_recursive_null($arr);<\/p>\n<p>\u5982\u679c\u8fd0\u884c\u4e0a\u8ff0\u4ee3\u7801\uff0c$arr \u7684\u503c\u5c06\u53d8\u4e3a\uff1a<\/p>\n<p>array(<\/p>\n<pre>'name' =&gt; '\u5f20\u4e09',\n'age' =&gt; 18,\n'contact' =&gt; array(\n    'email' =&gt; 'zhangsan@example.com',\n    'phone' =&gt; null,\n    'address' =&gt; array(\n        'province' =&gt; '\u5e7f\u4e1c\u7701',\n        'city' =&gt; null,\n        'district' =&gt; '\u756a\u79ba\u533a',\n    ),\n),<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>);<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<p>\u9012\u5f52\u6570\u7ec4\u66ff\u6362\u9002\u7528\u4e8e\u6574\u4e2a\u591a\u7ef4\u6570\u7ec4\u7684\u66ff\u6362\uff0c\u4f46\u9488\u5bf9\u5355\u4e2a\u503c\u7684\u66ff\u6362\u4ecd\u7136\u9700\u8981\u4f7f\u7528\u5faa\u73af\u904d\u5386\u3002<\/p>\n<p>\u4e09\u3001\u4f7f\u7528 array_map() \u51fd\u6570\u66ff\u6362<\/p>\n<p>PHP \u4e2d\u7684 array_map() \u51fd\u6570\u53ef\u4ee5\u5bf9\u6570\u7ec4\u4e2d\u7684\u6bcf\u4e2a\u5143\u7d20\u5e94\u7528\u6307\u5b9a\u7684\u56de\u8c03\u51fd\u6570\uff0c\u8fd4\u56de\u4e00\u4e2a\u65b0\u7684\u6570\u7ec4\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u8be5\u51fd\u6570\u6765\u5bf9\u6570\u7ec4\u4e2d\u7684\u503c\u8fdb\u884c\u66ff\u6362\u3002<\/p>\n<p>\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u5305\u542b\u4ee5\u4e0b\u6570\u636e\u7684\u6570\u7ec4\uff1a<\/p>\n<p>$arr = array(&#8216;apple&#8217;, &#8216;orange&#8217;, &#8216;banana&#8217;, &#8221;);<\/p>\n<p>\u6211\u4eec\u60f3\u628a\u5176\u4e2d\u7684\u7a7a\u5b57\u7b26\u4e32\u66ff\u6362\u6210 null\uff0c\u53ef\u4ee5\u4f7f\u7528 array_map() \u51fd\u6570\u548c\u4e00\u4e2a\u56de\u8c03\u51fd\u6570\u6765\u5b9e\u73b0\u3002<\/p>\n<p>\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<p>function replace_null($value) {<\/p>\n<pre>return $value === '' ? null : $value;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>}<br \/>$arr = array_map(&#8216;replace_null&#8217;, $arr);<\/p>\n<p>\u5728\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u7f16\u5199\u4e86\u4e00\u4e2a replace_null() \u56de\u8c03\u51fd\u6570\uff0c\u5982\u679c $value \u662f\u4e00\u4e2a\u7a7a\u5b57\u7b26\u4e32\uff0c\u5c31\u8fd4\u56de null\uff0c\u5426\u5219\u8fd4\u56de $value\u3002\u7136\u540e\u5c06\u8be5\u51fd\u6570\u4f5c\u4e3a\u56de\u8c03\u51fd\u6570\u4f20\u9012\u7ed9 array_map() \u51fd\u6570\uff0c\u5b8c\u6210\u6570\u7ec4\u4e2d\u503c\u7684\u66ff\u6362\u3002<\/p>\n<p>\u56db\u3001\u4f7f\u7528 array_walk_recursive() \u51fd\u6570\u66ff\u6362<\/p>\n<p>array_walk_recursive() \u51fd\u6570\u7528\u4e8e\u9012\u5f52\u5730\u5e94\u7528\u7528\u6237\u81ea\u5b9a\u4e49\u51fd\u6570\u7ed9\u6570\u7ec4\u6216\u5bf9\u8c61\u7684\u6bcf\u4e2a\u5143\u7d20\u3002\u4e0e array_map() \u7c7b\u4f3c\uff0c\u4f46\u53ef\u4ee5\u9012\u5f52\u904d\u5386\u591a\u7ef4\u6570\u7ec4\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u8be5\u51fd\u6570\u6765\u5bf9\u591a\u7ef4\u6570\u7ec4\u4e2d\u7684\u6240\u6709\u503c\u8fdb\u884c\u66ff\u6362\u3002<\/p>\n<p>\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u591a\u7ef4\u6570\u7ec4 $arr\uff0c\u5176\u4e2d\u5305\u542b\u4e86\u4e00\u4e9b\u7a7a\u5b57\u7b26\u4e32\uff1a<\/p>\n<p>$arr = array(<\/p>\n<pre>'name' =&gt; '\u5f20\u4e09',\n'age' =&gt; 18,\n'contact' =&gt; array(\n    'email' =&gt; 'zhangsan@example.com',\n    'phone' =&gt; '',\n    'address' =&gt; array(\n        'province' =&gt; '\u5e7f\u4e1c\u7701',\n        'city' =&gt; '',\n        'district' =&gt; '\u756a\u79ba\u533a',\n    ),\n),<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>);<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<p>\u73b0\u5728\uff0c\u6211\u4eec\u8981\u628a\u5176\u4e2d\u7684\u7a7a\u5b57\u7b26\u4e32\u90fd\u66ff\u6362\u6210 null\u3002\u53ef\u4ee5\u4f7f\u7528 array_walk_recursive() \u51fd\u6570\u548c\u4e00\u4e2a\u56de\u8c03\u51fd\u6570\u6765\u5b9e\u73b0\u3002<\/p>\n<p>\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<p>function replace_null_recursive(&amp;$value, $key) {<\/p>\n<pre>if ($value === '') {\n    $value = null;\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>}<br \/>array_walk_recursive($arr, &#8216;replace_null_recursive&#8217;);<\/p>\n<p>\u5728\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u7f16\u5199\u4e86\u4e00\u4e2a replace_null_recursive() \u56de\u8c03\u51fd\u6570\uff0c\u5982\u679c $value \u662f\u4e00\u4e2a\u7a7a\u5b57\u7b26\u4e32\uff0c\u5c31\u5c06\u5176\u66ff\u6362\u6210 null\uff0c\u7136\u540e\u5c06\u8be5\u51fd\u6570\u4f5c\u4e3a\u56de\u8c03\u51fd\u6570\u4f20\u9012\u7ed9 array_walk_recursive() \u51fd\u6570\u3002<\/p>\n<p>\u8fd0\u884c\u4e0a\u8ff0\u4ee3\u7801\u540e\uff0c$arr \u7684\u503c\u5c06\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<p>array(<\/p>\n<pre>'name' =&gt; '\u5f20\u4e09',\n'age' =&gt; 18,\n'contact' =&gt; array(\n    'email' =&gt; 'zhangsan@example.com',\n    'phone' =&gt; null,\n    'address' =&gt; array(\n        'province' =&gt; '\u5e7f\u4e1c\u7701',\n        'city' =&gt; null,\n        'district' =&gt; '\u756a\u79ba\u533a',\n    ),\n),<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>);<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<p>\u4e94\u3001\u603b\u7ed3<\/p>\n<p>\u672c\u6587\u4ecb\u7ecd\u4e86\u5728 ThinkPHP \u9879\u76ee\u4e2d\u5bf9\u6570\u7ec4\u8fdb\u884c\u66ff\u6362\u7684\u591a\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec\u666e\u901a\u6570\u7ec4\u66ff\u6362\u3001\u9012\u5f52\u6570\u7ec4\u66ff\u6362\u3001\u4f7f\u7528 array_map() \u51fd\u6570\u66ff\u6362\u548c\u4f7f\u7528 array_walk_recursive() \u51fd\u6570\u66ff\u6362\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u9002\u7528\u7684\u573a\u666f\uff0c\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u9009\u62e9\u6700\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u8282\u7701\u65f6\u95f4\u548c\u7cbe\u529b\u3002<\/p>\n<p>\u6700\u540e\uff0c\u5e0c\u671b\u672c\u6587\u80fd\u591f\u5bf9\u8bfb\u8005\u6709\u6240\u5e2e\u52a9\uff0c\u5728\u5904\u7406\u6570\u7ec4\u66ff\u6362\u65f6\u80fd\u591f\u66f4\u52a0\u9ad8\u6548\u5730\u5b8c\u6210\u4efb\u52a1\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fThinkPHP \u6570\u7ec4\u66ff\u6362\u5168\u9762\u89e3\u6790\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>\u5728\u7f16\u5199 php \u7a0b\u5e8f\u65f6\uff0c\u5904\u7406\u6570\u7ec4\u662f\u4e00\u4e2a\u5e38\u89c1\u7684\u4efb\u52a1\u3002\u5728 thinkphp \u9879\u76ee\u4e2d\uff0c\u7ecf\u5e38\u9700\u8981\u5bf9\u6570\u7ec4\u4e2d\u7684\u67d0\u4e9b\u503c\u8fdb\u884c\u66ff\u6362\uff0c\u4f8b\u5982\u5c06\u6570\u7ec4\u4e2d\u6240\u6709\u7684\u7a7a\u5b57\u7b26\u4e32\uff08&#8221;\uff09\u66ff\u6362\u4e3a null\u3002\u672c\u6587\u5c06\u4e3a\u5927\u5bb6\u4ecb\u7ecd thinkphp \u4e2d\u7684\u591a\u79cd\u6570\u7ec4\u66ff\u6362\u65b9\u6cd5\u3002 \u4e00\u3001\u666e\u901a\u6570\u7ec4\u66ff\u6362 \u9996\u5148\uff0c\u6211\u4eec\u6765\u770b\u4e00\u4e0b\u666e\u901a\u6570\u7ec4\u7684\u66ff\u6362\u65b9\u6cd5\u3002\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u6570\u7ec4 $arr\uff0c\u5176\u4e2d\u5305\u542b\u56db\u4e2a\u5143\u7d20\uff1a $arr = array( &#8216;name&#8217; =&gt; &#8216;\u5f20\u4e09&#8217;, &#8216;age&#8217; =&gt; 18, &#8217;email&#8217; =&gt; &#8216;zhangsan@example.com&#8217;, &#8216;gender&#8217; =&gt; &#8216;\u7537&#8217;, \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 ); \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u5982\u679c\u6211\u4eec\u60f3\u5c06\u6570\u7ec4\u4e2d\u6240\u6709\u7684\u7a7a\u5b57\u7b26\u4e32\u66ff\u6362\u4e3a null\uff0c\u53ef\u4ee5\u4f7f\u7528 foreach \u5faa\u73af\u904d\u5386\u6570\u7ec4\uff0c\u5bf9\u6bcf\u4e2a\u5143\u7d20\u8fdb\u884c\u66ff\u6362\u3002\u4ee3\u7801\u5982\u4e0b\uff1a foreach ($arr as &amp;$value) { if ($value === &#8221;) { $value = null; } \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 } \u5176\u4e2d\uff0c&amp;$value \u8868\u793a\u5bf9\u6570\u7ec4\u5143\u7d20\u7684\u5f15\u7528\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u76f4\u63a5\u4fee\u6539\u539f\u6570\u7ec4\u3002\u8fd0\u884c\u4e0a\u8ff0\u4ee3\u7801\u540e\uff0c$arr \u7684\u503c\u4f1a\u53d8\u6210\uff1a array( [&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-22464","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/22464","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=22464"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/22464\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=22464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=22464"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=22464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}