{"id":3078,"date":"2025-03-21T00:14:40","date_gmt":"2025-03-20T16:14:40","guid":{"rendered":"https:\/\/www.laixuexila.com\/?p=3078"},"modified":"2025-03-21T00:14:40","modified_gmt":"2025-03-20T16:14:40","slug":"php-7-%e6%96%b0%e7%89%b9%e6%80%a7","status":"publish","type":"post","link":"https:\/\/www.laixuexila.com\/index.php\/2025\/03\/21\/php-7-%e6%96%b0%e7%89%b9%e6%80%a7\/","title":{"rendered":"PHP 7 \u65b0\u7279\u6027"},"content":{"rendered":"\n<p>PHP 7 \u5e26\u6765\u4e86\u8bb8\u591a\u91cd\u8981\u7684\u7279\u6027\u548c\u6027\u80fd\u6539\u8fdb\uff0c\u4f7f\u5f97\u4ee3\u7801\u8fd0\u884c\u901f\u5ea6\u66f4\u5feb\uff0c\u540c\u65f6\u63d0\u9ad8\u4e86\u8bed\u8a00\u7684\u7a33\u5b9a\u6027\u548c\u529f\u80fd\u6027\u3002\u4ee5\u4e0b\u662f PHP 7 \u7684\u4e00\u4e9b\u5173\u952e\u65b0\u7279\u6027\u548c\u6539\u8fdb\uff1a<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>1. \u6027\u80fd\u63d0\u5347<\/strong><\/h2>\n\n\n\n<p>PHP 7 \u5f15\u5165\u4e86 <strong>Zend Engine 3<\/strong>\uff0c\u5bf9\u6027\u80fd\u8fdb\u884c\u4e86\u663e\u8457\u4f18\u5316\u3002\u4e0e PHP 5.x \u76f8\u6bd4\uff0cPHP 7 \u5728\u5f88\u591a\u60c5\u51b5\u4e0b\u8fd0\u884c\u901f\u5ea6\u66f4\u5feb\uff0c\u80fd\u591f\u63d0\u4f9b <strong>\u4e24\u500d\u4e8e PHP 5.6 \u7684\u6027\u80fd\u63d0\u5347<\/strong>\u3002\u7279\u522b\u662f\u5728\u5927\u91cf\u8bf7\u6c42\u6216\u9ad8\u6d41\u91cf\u7f51\u7ad9\u7684\u5904\u7406\u4e0a\uff0cPHP 7 \u66f4\u52a0\u9ad8\u6548\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u6027\u80fd\u63d0\u5347\u793a\u4f8b\uff1a<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u66f4\u5feb\u7684\u8bf7\u6c42\u5904\u7406\u901f\u5ea6\u3002<\/li>\n\n\n\n<li>\u66f4\u5c11\u7684\u5185\u5b58\u6d88\u8017\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>2. \u96f6\u5bbd\u5ea6\u64cd\u4f5c\u7b26\uff08Spaceship Operator\uff09<\/strong><\/h2>\n\n\n\n<p>PHP 7 \u5f15\u5165\u4e86\u4e00\u4e2a\u65b0\u8fd0\u7b97\u7b26 \u2014\u2014 <strong>\u96f6\u5bbd\u5ea6\u64cd\u4f5c\u7b26<\/strong>\uff08<code>&lt;=&gt;<\/code>\uff09\uff0c\u7528\u4e8e\u6bd4\u8f83\u4e24\u4e2a\u503c\u3002\u5b83\u8fd4\u56de\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>-1<\/code> \u5982\u679c\u5de6\u8fb9\u7684\u503c\u5c0f\u4e8e\u53f3\u8fb9\u7684\u503c<\/li>\n\n\n\n<li><code>0<\/code> \u5982\u679c\u4e24\u8fb9\u7684\u503c\u76f8\u7b49<\/li>\n\n\n\n<li><code>1<\/code> \u5982\u679c\u5de6\u8fb9\u7684\u503c\u5927\u4e8e\u53f3\u8fb9\u7684\u503c<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u793a\u4f8b\uff1a<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>$a = 10;\n$b = 20;\necho $a &lt;=&gt; $b;  \/\/ \u8f93\u51fa\uff1a-1\n\n$a = 20;\n$b = 20;\necho $a &lt;=&gt; $b;  \/\/ \u8f93\u51fa\uff1a0\n\n$a = 30;\n$b = 20;\necho $a &lt;=&gt; $b;  \/\/ \u8f93\u51fa\uff1a1<\/code><\/pre>\n\n\n\n<p>\ud83d\udccc <strong>\u96f6\u5bbd\u5ea6\u64cd\u4f5c\u7b26<\/strong>\u975e\u5e38\u9002\u5408\u7528\u4e8e\u6392\u5e8f\u64cd\u4f5c\uff0c\u6bd4\u5982\u4f7f\u7528 <code>usort()<\/code> \u5bf9\u6570\u7ec4\u8fdb\u884c\u6392\u5e8f\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>3. \u7c7b\u578b\u58f0\u660e\uff08Type Declarations\uff09\u589e\u5f3a<\/strong><\/h2>\n\n\n\n<p>PHP 7 \u52a0\u5f3a\u4e86\u5bf9 <strong>\u6807\u91cf\u7c7b\u578b\u58f0\u660e<\/strong> \u548c <strong>\u8fd4\u56de\u7c7b\u578b\u58f0\u660e<\/strong> \u7684\u652f\u6301\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u6807\u91cf\u7c7b\u578b\u58f0\u660e\uff1a<\/strong><\/h3>\n\n\n\n<p>PHP 7 \u5141\u8bb8\u4e3a <strong>\u51fd\u6570\u53c2\u6570<\/strong>\u58f0\u660e\u7c7b\u578b\uff0c\u5e76\u4e14\u53ef\u4ee5\u4f7f\u7528 <code>int<\/code>, <code>float<\/code>, <code>string<\/code>, <code>bool<\/code> \u7b49\u6807\u91cf\u7c7b\u578b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function add(int $a, int $b): int {\n    return $a + $b;\n}\n\necho add(10, 20);  \/\/ \u8f93\u51fa\uff1a30<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u8fd4\u56de\u7c7b\u578b\u58f0\u660e\uff1a<\/strong><\/h3>\n\n\n\n<p>PHP 7 \u5141\u8bb8\u4e3a <strong>\u51fd\u6570\u8fd4\u56de\u503c<\/strong>\u58f0\u660e\u7c7b\u578b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function multiply(int $a, int $b): float {\n    return $a * $b;\n}\n\necho multiply(10, 2);  \/\/ \u8f93\u51fa\uff1a20<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u4e25\u683c\u6a21\u5f0f\uff1a<\/strong><\/h3>\n\n\n\n<p>\u901a\u8fc7 <code>declare(strict_types=1)<\/code> \u53ef\u4ee5\u542f\u7528\u4e25\u683c\u6a21\u5f0f\uff0c\u5f3a\u5236\u8fdb\u884c\u7c7b\u578b\u68c0\u67e5\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>declare(strict_types=1);\n\nfunction add(int $a, int $b): int {\n    return $a + $b;\n}\n\necho add(10, 20);  \/\/ \u8f93\u51fa\uff1a30<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>4. \u5f02\u5e38\u5904\u7406\uff1aError \u7c7b<\/strong><\/h2>\n\n\n\n<p>PHP 7 \u5f15\u5165\u4e86 <strong><code>Error<\/code><\/strong> \u7c7b\uff0c\u7528\u4e8e\u5904\u7406 PHP \u9519\u8bef\u3002\u5728 PHP 5.x \u4e2d\uff0c\u9519\u8bef\u662f\u76f4\u63a5\u8f93\u51fa\u7684\uff0c\u800c\u5728 PHP 7 \u4e2d\uff0c\u8bb8\u591a\u5e38\u89c1\u7684\u9519\u8bef\u53d8\u6210\u4e86\u5f02\u5e38\uff0c\u53ef\u4ee5\u901a\u8fc7 <code>try-catch<\/code> \u8bed\u53e5\u6355\u83b7\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u793a\u4f8b\uff1a<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>try {\n    \/\/ \u5f15\u53d1\u4e00\u4e2a\u9519\u8bef\n    throw new Error(\"Something went wrong\");\n} catch (Error $e) {\n    echo \"Caught error: \" . $e-&gt;getMessage();\n}<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>5. \u7a7a\u5408\u5e76\u64cd\u4f5c\u7b26\uff08Null Coalescing Operator\uff09<\/strong><\/h2>\n\n\n\n<p>PHP 7 \u5f15\u5165\u4e86 <strong>\u7a7a\u5408\u5e76\u64cd\u4f5c\u7b26<\/strong>\uff08<code>??<\/code>\uff09\uff0c\u7528\u4e8e\u68c0\u67e5\u53d8\u91cf\u662f\u5426\u4e3a <code>null<\/code>\uff0c\u5982\u679c\u662f\uff0c\u5219\u8fd4\u56de\u53f3\u8fb9\u7684\u503c\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u793a\u4f8b\uff1a<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>$username = $_GET&#91;'user'] ?? 'guest';\necho $username;  \/\/ \u5982\u679c 'user' \u53c2\u6570\u4e3a\u7a7a\uff0c\u8f93\u51fa 'guest'<\/code><\/pre>\n\n\n\n<p>\ud83d\udccc \u8be5\u64cd\u4f5c\u7b26\u7b80\u5316\u4e86\u5bf9\u53d8\u91cf\u5b58\u5728\u6027\u7684\u68c0\u67e5\uff0c\u4f7f\u4ee3\u7801\u66f4\u7b80\u6d01\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>6. \u533f\u540d\u7c7b<\/strong><\/h2>\n\n\n\n<p>PHP 7 \u5f15\u5165\u4e86\u5bf9 <strong>\u533f\u540d\u7c7b<\/strong> \u7684\u652f\u6301\uff0c\u53ef\u4ee5\u5728\u6ca1\u6709\u7c7b\u540d\u7684\u60c5\u51b5\u4e0b\u76f4\u63a5\u521b\u5efa\u7c7b\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u793a\u4f8b\uff1a<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>$object = new class {\n    public $name = \"Anonymous\";\n\n    public function sayHello() {\n        echo \"Hello, \" . $this-&gt;name;\n    }\n};\n\n$object-&gt;sayHello();  \/\/ \u8f93\u51fa\uff1aHello, Anonymous<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>7. \u6539\u8fdb\u7684\u5185\u5b58\u7ba1\u7406<\/strong><\/h2>\n\n\n\n<p>PHP 7 \u5bf9\u5185\u5b58\u7ba1\u7406\u8fdb\u884c\u4e86\u4f18\u5316\uff0c\u5c24\u5176\u662f\u5728 <strong>\u6570\u7ec4<\/strong> \u548c <strong>\u5bf9\u8c61<\/strong> \u7684\u5904\u7406\u4e0a\u3002PHP 7 \u901a\u8fc7 <strong>\u66f4\u9ad8\u6548\u7684\u5185\u5b58\u5206\u914d<\/strong> \u548c <strong>\u5783\u573e\u56de\u6536\u673a\u5236<\/strong> \u6765\u51cf\u5c11\u5185\u5b58\u6cc4\u6f0f\u548c\u5185\u5b58\u5360\u7528\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>8. \u65b0\u7684 <code>intdiv()<\/code> \u51fd\u6570<\/strong><\/h2>\n\n\n\n<p>PHP 7 \u5f15\u5165\u4e86\u4e00\u4e2a\u65b0\u7684\u5185\u7f6e\u51fd\u6570 <strong><code>intdiv()<\/code><\/strong>\uff0c\u7528\u4e8e\u6267\u884c\u6574\u6570\u9664\u6cd5\u3002\u4e0e\u4f20\u7edf\u7684\u9664\u6cd5\u8fd0\u7b97\u7b26\u4e0d\u540c\uff0c<code>intdiv()<\/code> \u8fd4\u56de <strong>\u6574\u6570\u7ed3\u679c<\/strong>\uff0c\u5e76\u4e14\u4f1a\u629b\u51fa\u5f02\u5e38\uff08<code>DivisionByZeroError<\/code>\uff09\u5f53\u9664\u6570\u4e3a\u96f6\u65f6\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u793a\u4f8b\uff1a<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>echo intdiv(10, 3);  \/\/ \u8f93\u51fa\uff1a3<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>9. \u652f\u6301 Unicode \u5b57\u7b26<\/strong><\/h2>\n\n\n\n<p>PHP 7 \u589e\u5f3a\u4e86\u5bf9 <strong>Unicode<\/strong> \u5b57\u7b26\u7684\u652f\u6301\uff0c\u4f7f\u5f97\u5904\u7406 <strong>\u591a\u8bed\u8a00<\/strong> \u6570\u636e\u65f6\u66f4\u52a0\u7b80\u6d01\u3002\u4f8b\u5982\uff0c\u65b0\u7684 <code>mbstring<\/code> \u548c <code>intl<\/code> \u6269\u5c55\u6539\u5584\u4e86\u591a\u5b57\u8282\u5b57\u7b26\u96c6\u7684\u652f\u6301\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>10. \u8fc7\u6ee4\u5668\uff08Filter\uff09\u6539\u8fdb<\/strong><\/h2>\n\n\n\n<p>PHP 7 \u5bf9 <strong>\u8fc7\u6ee4\u5668\u6269\u5c55<\/strong>\uff08<code>filter<\/code>\uff09\u8fdb\u884c\u4e86\u589e\u5f3a\uff0c\u63d0\u4f9b\u4e86\u66f4\u4e30\u5bcc\u7684\u8f93\u5165\u9a8c\u8bc1\u548c\u6570\u636e\u6e05\u7406\u529f\u80fd\uff0c\u589e\u5f3a\u4e86\u5b89\u5168\u6027\u548c\u9632\u6b62\u6076\u610f\u6ce8\u5165\u7684\u80fd\u529b\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>11. \u53cd\u5411\u4f9d\u8d56\u548c\u51fd\u6570\u7684\u6539\u8fdb<\/strong><\/h2>\n\n\n\n<p>PHP 7 \u4e3a\u5f88\u591a\u51fd\u6570\u548c\u7c7b\u63d0\u4f9b\u4e86 <strong>\u66f4\u4e25\u683c\u7684\u7c7b\u578b\u58f0\u660e<\/strong> \u548c <strong>\u6539\u8fdb\u7684\u9519\u8bef\u5904\u7406\u673a\u5236<\/strong>\uff0c\u5e76\u5728\u591a\u79cd\u60c5\u51b5\u4e0b\u5f15\u5165\u4e86\u65b0\u7684\u8b66\u544a\u548c\u5f02\u5e38\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>12. <code>intl<\/code> \u6269\u5c55\u6539\u8fdb<\/strong><\/h2>\n\n\n\n<p><code>intl<\/code> \u6269\u5c55\uff08\u56fd\u9645\u5316\u6269\u5c55\uff09\u5f97\u5230\u4e86\u8fdb\u4e00\u6b65\u7684\u6539\u8fdb\uff0cPHP 7 \u63d0\u4f9b\u4e86\u66f4\u597d\u7684 <strong>\u533a\u57df\u8bbe\u7f6e<\/strong> \u548c <strong>\u5b57\u7b26\u7f16\u7801\u652f\u6301<\/strong>\uff0c\u66f4\u597d\u5730\u652f\u6301\u591a\u8bed\u8a00\u5e94\u7528\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>13. \u65b0\u7684\u629b\u51fa\u5f02\u5e38\uff1a<code>DivisionByZeroError<\/code><\/strong><\/h2>\n\n\n\n<p>\u5728 PHP 7 \u4e2d\uff0c\u50cf\u9664\u4ee5\u96f6\u8fd9\u79cd\u9519\u8bef\u88ab\u4f5c\u4e3a <code>DivisionByZeroError<\/code> \u5f02\u5e38\u629b\u51fa\uff0c\u800c\u4e0d\u662f\u666e\u901a\u7684 PHP \u9519\u8bef\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u793a\u4f8b\uff1a<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>try {\n    $result = 10 \/ 0;  \/\/ \u4f1a\u629b\u51fa\u5f02\u5e38\n} catch (DivisionByZeroError $e) {\n    echo \"Caught exception: \" . $e-&gt;getMessage();\n}<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>14. \u6539\u8fdb\u7684 <code>mysqli<\/code> \u6269\u5c55<\/strong><\/h2>\n\n\n\n<p>PHP 7 \u5bf9 <strong><code>mysqli<\/code> \u6269\u5c55<\/strong>\u8fdb\u884c\u4e86\u6539\u8fdb\uff0c\u5305\u62ec\u652f\u6301 <strong>\u5f02\u6b65\u67e5\u8be2<\/strong>\uff0c\u4f7f\u5f97\u5f00\u53d1\u8005\u80fd\u591f\u66f4\u52a0\u9ad8\u6548\u5730\u4e0e\u6570\u636e\u5e93\u4ea4\u4e92\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u603b\u7ed3<\/strong><\/h2>\n\n\n\n<p>PHP 7 \u5e26\u6765\u4e86\u663e\u8457\u7684\u6027\u80fd\u63d0\u5347\uff0c\u5e76\u4e14\u5f15\u5165\u4e86\u591a\u79cd\u65b0\u7279\u6027\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6027\u80fd\u63d0\u5347\u548c\u5185\u5b58\u7ba1\u7406\u7684\u4f18\u5316\u3002<\/li>\n\n\n\n<li>\u65b0\u7684\u8fd0\u7b97\u7b26\uff0c\u5982 <strong>\u96f6\u5bbd\u5ea6\u64cd\u4f5c\u7b26\uff08Spaceship Operator\uff09<\/strong> \u548c <strong>\u7a7a\u5408\u5e76\u64cd\u4f5c\u7b26<\/strong>\u3002<\/li>\n\n\n\n<li>\u5f3a\u5316\u4e86 <strong>\u7c7b\u578b\u58f0\u660e<\/strong> \u548c <strong>\u8fd4\u56de\u7c7b\u578b\u58f0\u660e<\/strong>\u3002<\/li>\n\n\n\n<li>\u5f15\u5165\u4e86 <strong>\u5f02\u5e38\u5904\u7406\u6539\u8fdb<\/strong>\uff0c\u5982\u65b0\u7684 <code>Error<\/code> \u7c7b\u548c <code>DivisionByZeroError<\/code>\u3002<\/li>\n\n\n\n<li>\u6539\u8fdb\u4e86\u5bf9 <strong>Unicode<\/strong> \u548c <strong>\u8fc7\u6ee4\u5668<\/strong>\u7684\u652f\u6301\u3002<\/li>\n<\/ul>\n\n\n\n<p>PHP 7 \u7684\u53d1\u5e03\u6807\u5fd7\u7740\u4e00\u4e2a\u66f4\u9ad8\u6548\u3001\u66f4\u73b0\u4ee3\u7684 PHP \u8bed\u8a00\u7248\u672c\uff0c\u4f7f\u5f97\u5f00\u53d1\u8005\u53ef\u4ee5\u66f4\u52a0\u65b9\u4fbf\u3001\u5b89\u5168\u548c\u9ad8\u6548\u5730\u8fdb\u884c Web \u5f00\u53d1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP 7 \u5e26\u6765\u4e86\u8bb8\u591a\u91cd\u8981\u7684\u7279\u6027\u548c\u6027\u80fd\u6539\u8fdb\uff0c\u4f7f\u5f97\u4ee3\u7801\u8fd0\u884c\u901f\u5ea6\u66f4\u5feb\uff0c\u540c\u65f6\u63d0\u9ad8\u4e86\u8bed\u8a00\u7684\u7a33\u5b9a\u6027\u548c\u529f\u80fd\u6027\u3002\u4ee5\u4e0b\u662f PH [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3079,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[80],"tags":[],"class_list":["post-3078","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php"],"_links":{"self":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/3078","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/comments?post=3078"}],"version-history":[{"count":1,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/3078\/revisions"}],"predecessor-version":[{"id":3080,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/3078\/revisions\/3080"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/media\/3079"}],"wp:attachment":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/media?parent=3078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/categories?post=3078"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/tags?post=3078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}