{"id":848,"date":"2025-08-05T16:34:07","date_gmt":"2025-08-05T07:34:07","guid":{"rendered":"https:\/\/nexive.tech\/?p=848"},"modified":"2025-08-05T16:34:07","modified_gmt":"2025-08-05T07:34:07","slug":"%e3%80%90%e3%82%b5%e3%82%af%e3%83%83%e3%81%a8%e8%a7%a3%e8%aa%ac%e3%80%91php-%e5%8f%a4%e3%81%84%e3%82%b3%e3%83%bc%e3%83%89%e3%82%92%e7%8f%be%e4%bb%a3%e7%9a%84%e3%81%ab%e6%9b%b8%e3%81%8d%e6%8f%9b","status":"publish","type":"post","link":"https:\/\/nexive.tech\/?p=848","title":{"rendered":"\u3010\u30b5\u30af\u30c3\u3068\u89e3\u8aac\u3011PHP \u53e4\u3044\u30b3\u30fc\u30c9\u3092\u73fe\u4ee3\u7684\u306b\u66f8\u304d\u63db\u3048\u308b\u65b9\u6cd5"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">1. \u672c\u8a18\u4e8b\u306e\u30dd\u30a4\u30f3\u30c8<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u53e4\u3044PHP\u30b3\u30fc\u30c9\u3092\u73fe\u4ee3\u7684\u306a\u66f8\u304d\u65b9\u306b\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u3059\u308b\u30dd\u30a4\u30f3\u30c8\u3092\u89e3\u8aac<\/li>\n\n\n\n<li>\u5b9f\u884c\u53ef\u80fd\u306a\u30b3\u30fc\u30c9\u4f8b\u3067\u3001\u6539\u5584\u524d\u5f8c\u306e\u6bd4\u8f03\u3068\u6ce8\u610f\u70b9\u3092\u63d0\u793a<\/li>\n\n\n\n<li>\u5b9f\u52d9\u306b\u304a\u3051\u308b\u4fdd\u5b88\u30fb\u6539\u4fee\u306e\u5224\u65ad\u57fa\u6e96\u3084\u8a2d\u8a08\u610f\u56f3\u306b\u3082\u89e6\u308c\u308b<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">2. \u53e4\u3044PHP\u30b3\u30fc\u30c9\u3092\u8aad\u307f\u3084\u3059\u304f\u66f8\u304d\u63db\u3048\u308b\u306b\u306f\uff1f<\/h2>\n\n\n\n<p>PHP\u306f\u9577\u3044\u6b74\u53f2\u3092\u6301\u3064\u30b9\u30af\u30ea\u30d7\u30c8\u8a00\u8a9e\u3067\u3042\u308a\u30015.x\u4ee5\u524d\u306b\u66f8\u304b\u308c\u305f\u30b3\u30fc\u30c9\u306f\u3001\u73fe\u5728\u306e7.x\u301c8.x\u7cfb\u306e\u6587\u6cd5\u3084\u8a2d\u8a08\u601d\u60f3\u3068\u5927\u304d\u304f\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u7279\u306b\u53e4\u3044PHP\u3067\u306f\u3001\u95a2\u6570\u4e71\u7528\u30fb\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\u4f9d\u5b58\u30fb\u30af\u30e9\u30b9\u306e\u672a\u4f7f\u7528\u30fb\u547d\u540d\u898f\u5247\u306e\u4e0d\u7d71\u4e00\u306a\u3069\u304c\u591a\u304f\u898b\u3089\u308c\u307e\u3059\u3002\u3053\u308c\u3089\u306f\u4fdd\u5b88\u6027\u3084\u53ef\u8aad\u6027\u306e\u4f4e\u4e0b\u3092\u62db\u304d\u3001\u30d0\u30b0\u3084\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ea\u30b9\u30af\u306e\u6e29\u5e8a\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5b9f\u52d9\u306b\u304a\u3044\u3066\u306f\u3001\u3053\u308c\u3089\u306e\u30ec\u30ac\u30b7\u30fc\u30b3\u30fc\u30c9\u3092\u300c\u3059\u3050\u306b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u4e57\u305b\u66ff\u3048\u308b\u300d\u306e\u3067\u306f\u306a\u304f\u3001\u6bb5\u968e\u7684\u306a\u8aad\u307f\u66ff\u3048\u30fb\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u304b\u3089\u59cb\u3081\u308b\u30b1\u30fc\u30b9\u304c\u591a\u304f\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u672c\u8a18\u4e8b\u3067\u306f\u300c\u53e4\u3044\u30b3\u30fc\u30c9\u3092\u8aad\u307f\u3084\u3059\u304f\u3001\u5b89\u5168\u306b\u73fe\u4ee3\u7684\u306b\u66f8\u304d\u63db\u3048\u308b\u300d\u305f\u3081\u306e\u57fa\u672c\u7684\u306a\u89b3\u70b9\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3. \u8a73\u7d30\u89e3\u8aac<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\u306e\u4f7f\u7528\u3092\u907f\u3051\u3001\u660e\u793a\u7684\u306a\u5f15\u6570\u30fb\u623b\u308a\u5024\u306b\u66f8\u304d\u63db\u3048\u308b<\/h3>\n\n\n\n<p>\u4ee5\u4e0b\u306f\u5178\u578b\u7684\u306a\u30ec\u30ac\u30b7\u30fcPHP\u30b3\u30fc\u30c9\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:16px 0 0 16px;width:100%;text-align:left;background-color:#1e1e1e\"><span style=\"background:#c7c7c7;padding:0.3rem 0.5rem 0.2rem;border-radius:1rem;font-size:0.8em;line-height:1;height:1.25rem;text-align:center;display:inline-flex;align-items:center;justify-content:center;color:#1e1e1e\">PHP<\/span><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>\/\/ \u6539\u5584\u524d\uff1a\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\u306b\u4f9d\u5b58\nfunction calcTotal() {\n    global $price, $tax;\n    return $price + ($price * $tax);\n}\n\n$price = 1000;\n$tax = 0.1;\necho calcTotal(); \/\/ 1100\n<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #6A9955\">\/\/ \u6539\u5584\u524d\uff1a\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\u306b\u4f9d\u5b58<\/span><\/span>\n<span class=\"line\"><span style=\"color: #569CD6\">function<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #DCDCAA\">calcTotal<\/span><span style=\"color: #D4D4D4\">() {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #569CD6\">global<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">$price<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #9CDCFE\">$tax<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #C586C0\">return<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">$price<\/span><span style=\"color: #D4D4D4\"> + (<\/span><span style=\"color: #9CDCFE\">$price<\/span><span style=\"color: #D4D4D4\"> * <\/span><span style=\"color: #9CDCFE\">$tax<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">$price<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #B5CEA8\">1000<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">$tax<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #B5CEA8\">0.1<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">echo<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #DCDCAA\">calcTotal<\/span><span style=\"color: #D4D4D4\">(); <\/span><span style=\"color: #6A9955\">\/\/ 1100<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u306f\u3001\u95a2\u6570\u306e\u5916\u5074\u306b\u3042\u308b\u5909\u6570\u306e\u72b6\u614b\u306b\u4f9d\u5b58\u3057\u3066\u304a\u308a\u3001\u4e88\u671f\u3057\u306a\u3044\u526f\u4f5c\u7528\u304c\u767a\u751f\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6539\u5584\u4f8b\uff1a\u5f15\u6570\u30fb\u623b\u308a\u5024\u306b\u3088\u3063\u3066\u4f9d\u5b58\u95a2\u4fc2\u3092\u660e\u793a\u3059\u308b\u3053\u3068\u3067\u3001\u518d\u5229\u7528\u6027\u3068\u30c6\u30b9\u30c8\u5bb9\u6613\u6027\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:16px 0 0 16px;width:100%;text-align:left;background-color:#1e1e1e\"><span style=\"background:#c7c7c7;padding:0.3rem 0.5rem 0.2rem;border-radius:1rem;font-size:0.8em;line-height:1;height:1.25rem;text-align:center;display:inline-flex;align-items:center;justify-content:center;color:#1e1e1e\">PHP<\/span><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>\/\/ \u6539\u5584\u5f8c\uff1a\u5f15\u6570\u306b\u660e\u793a\u7684\u306b\u5024\u3092\u6e21\u3059\nfunction calcTotal(float $price, float $tax): float {\n    return $price + ($price * $tax);\n}\n\necho calcTotal(1000, 0.1); \/\/ 1100\n<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #6A9955\">\/\/ \u6539\u5584\u5f8c\uff1a\u5f15\u6570\u306b\u660e\u793a\u7684\u306b\u5024\u3092\u6e21\u3059<\/span><\/span>\n<span class=\"line\"><span style=\"color: #569CD6\">function<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #DCDCAA\">calcTotal<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #569CD6\">float<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">$price<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #569CD6\">float<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">$tax<\/span><span style=\"color: #D4D4D4\">): <\/span><span style=\"color: #569CD6\">float<\/span><span style=\"color: #D4D4D4\"> {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #C586C0\">return<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">$price<\/span><span style=\"color: #D4D4D4\"> + (<\/span><span style=\"color: #9CDCFE\">$price<\/span><span style=\"color: #D4D4D4\"> * <\/span><span style=\"color: #9CDCFE\">$tax<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">echo<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #DCDCAA\">calcTotal<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #B5CEA8\">1000<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">0.1<\/span><span style=\"color: #D4D4D4\">); <\/span><span style=\"color: #6A9955\">\/\/ 1100<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u914d\u5217\u30a2\u30af\u30bb\u30b9\u304b\u3089\u30af\u30e9\u30b9\u30fb\u578b\u4ed8\u304d\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3078\u306e\u66f8\u304d\u63db\u3048<\/h3>\n\n\n\n<p>\u30ec\u30ac\u30b7\u30fcPHP\u3067\u306f\u3001\u9023\u60f3\u914d\u5217\u3092\u591a\u7528\u3057\u3066\u30c7\u30fc\u30bf\u69cb\u9020\u3092\u8868\u73fe\u3059\u308b\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:16px 0 0 16px;width:100%;text-align:left;background-color:#1e1e1e\"><span style=\"background:#c7c7c7;padding:0.3rem 0.5rem 0.2rem;border-radius:1rem;font-size:0.8em;line-height:1;height:1.25rem;text-align:center;display:inline-flex;align-items:center;justify-content:center;color:#1e1e1e\">PHP<\/span><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>\/\/ \u6539\u5584\u524d\uff1a\u914d\u5217\u30d9\u30fc\u30b9\u306e\u30c7\u30fc\u30bf\u64cd\u4f5c\n$user = &#91;\"name\" => \"Taro\", \"age\" => 30&#93;;\necho $user&#91;\"name\"&#93;;\n<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #6A9955\">\/\/ \u6539\u5584\u524d\uff1a\u914d\u5217\u30d9\u30fc\u30b9\u306e\u30c7\u30fc\u30bf\u64cd\u4f5c<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">$user<\/span><span style=\"color: #D4D4D4\"> = &#91;<\/span><span style=\"color: #CE9178\">&quot;name&quot;<\/span><span style=\"color: #D4D4D4\"> =&gt; <\/span><span style=\"color: #CE9178\">&quot;Taro&quot;<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #CE9178\">&quot;age&quot;<\/span><span style=\"color: #D4D4D4\"> =&gt; <\/span><span style=\"color: #B5CEA8\">30<\/span><span style=\"color: #D4D4D4\">&#93;;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">echo<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">$user<\/span><span style=\"color: #D4D4D4\">&#91;<\/span><span style=\"color: #CE9178\">&quot;name&quot;<\/span><span style=\"color: #D4D4D4\">&#93;;<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u914d\u5217\u306f\u67d4\u8edf\u3067\u3059\u304c\u3001\u30ad\u30fc\u306e\u30df\u30b9\u3084\u578b\u306e\u4e0d\u6574\u5408\u304c\u5b9f\u884c\u6642\u30a8\u30e9\u30fc\u3092\u62db\u304d\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6539\u5584\u4f8b\uff1a\u30af\u30e9\u30b9\u3092\u4f7f\u3063\u3066\u578b\u3068\u69cb\u9020\u3092\u660e\u793a\u3059\u308b\u3068\u3001IDE\u306e\u88dc\u5b8c\u3084\u9759\u7684\u89e3\u6790\u3082\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:16px 0 0 16px;width:100%;text-align:left;background-color:#1e1e1e\"><span style=\"background:#c7c7c7;padding:0.3rem 0.5rem 0.2rem;border-radius:1rem;font-size:0.8em;line-height:1;height:1.25rem;text-align:center;display:inline-flex;align-items:center;justify-content:center;color:#1e1e1e\">PHP<\/span><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>\/\/ \u6539\u5584\u5f8c\uff1a\u30af\u30e9\u30b9\u3092\u7528\u3044\u305f\u660e\u793a\u7684\u306a\u30c7\u30fc\u30bf\u8868\u73fe\nclass User {\n    public string $name;\n    public int $age;\n\n    public function __construct(string $name, int $age) {\n        $this->name = $name;\n        $this->age = $age;\n    }\n}\n\n$user = new User(\"Taro\", 30);\necho $user->name;\n<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #6A9955\">\/\/ \u6539\u5584\u5f8c\uff1a\u30af\u30e9\u30b9\u3092\u7528\u3044\u305f\u660e\u793a\u7684\u306a\u30c7\u30fc\u30bf\u8868\u73fe<\/span><\/span>\n<span class=\"line\"><span style=\"color: #569CD6\">class<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #4EC9B0\">User<\/span><span style=\"color: #D4D4D4\"> {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #569CD6\">public<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">string<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">$name<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #569CD6\">public<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">int<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">$age<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #569CD6\">public<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">function<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #DCDCAA\">__construct<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #569CD6\">string<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">$name<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #569CD6\">int<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">$age<\/span><span style=\"color: #D4D4D4\">) {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        <\/span><span style=\"color: #569CD6\">$this<\/span><span style=\"color: #D4D4D4\">-&gt;<\/span><span style=\"color: #9CDCFE\">name<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #9CDCFE\">$name<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        <\/span><span style=\"color: #569CD6\">$this<\/span><span style=\"color: #D4D4D4\">-&gt;<\/span><span style=\"color: #9CDCFE\">age<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #9CDCFE\">$age<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    }<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">$user<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #569CD6\">new<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #4EC9B0\">User<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #CE9178\">&quot;Taro&quot;<\/span><span style=\"color: #D4D4D4\">, <\/span><span style=\"color: #B5CEA8\">30<\/span><span style=\"color: #D4D4D4\">);<\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">echo<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #9CDCFE\">$user<\/span><span style=\"color: #D4D4D4\">-&gt;<\/span><span style=\"color: #9CDCFE\">name<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u95a2\u6570\u3084\u51e6\u7406\u306e\u5206\u5c90\u3092switch\u304b\u3089match\u5f0f\u3078\uff08PHP 8.0\u301c\uff09<\/h3>\n\n\n\n<p>PHP 8.0\u4ee5\u964d\u3067\u306f\u3001\u8907\u6570\u306e\u6761\u4ef6\u5206\u5c90\u306b\u5bfe\u3057\u3066<code>match<\/code>\u5f0f\u304c\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u5197\u9577\u306aswitch\u69cb\u6587\u306e\u4ee3\u66ff\u3068\u3057\u3066\u8aad\u307f\u3084\u3059\u304f\u3001\u5f0f\u3068\u3057\u3066\u5024\u3092\u8fd4\u305b\u308b\u306e\u304c\u7279\u5fb4\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:16px 0 0 16px;width:100%;text-align:left;background-color:#1e1e1e\"><span style=\"background:#c7c7c7;padding:0.3rem 0.5rem 0.2rem;border-radius:1rem;font-size:0.8em;line-height:1;height:1.25rem;text-align:center;display:inline-flex;align-items:center;justify-content:center;color:#1e1e1e\">PHP<\/span><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>\/\/ \u6539\u5584\u524d\uff1aswitch\u69cb\u6587\nswitch ($status) {\n    case \"ok\":\n        $msg = \"\u6b63\u5e38\u3067\u3059\";\n        break;\n    case \"error\":\n        $msg = \"\u30a8\u30e9\u30fc\u3067\u3059\";\n        break;\n    default:\n        $msg = \"\u4e0d\u660e\u3067\u3059\";\n}\n<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #6A9955\">\/\/ \u6539\u5584\u524d\uff1aswitch\u69cb\u6587<\/span><\/span>\n<span class=\"line\"><span style=\"color: #C586C0\">switch<\/span><span style=\"color: #D4D4D4\"> (<\/span><span style=\"color: #9CDCFE\">$status<\/span><span style=\"color: #D4D4D4\">) {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #C586C0\">case<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">&quot;ok&quot;<\/span><span style=\"color: #D4D4D4\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        <\/span><span style=\"color: #9CDCFE\">$msg<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #CE9178\">&quot;\u6b63\u5e38\u3067\u3059&quot;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        <\/span><span style=\"color: #C586C0\">break<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #C586C0\">case<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">&quot;error&quot;<\/span><span style=\"color: #D4D4D4\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        <\/span><span style=\"color: #9CDCFE\">$msg<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #CE9178\">&quot;\u30a8\u30e9\u30fc\u3067\u3059&quot;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        <\/span><span style=\"color: #C586C0\">break<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #C586C0\">default<\/span><span style=\"color: #D4D4D4\">:<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">        <\/span><span style=\"color: #9CDCFE\">$msg<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #CE9178\">&quot;\u4e0d\u660e\u3067\u3059&quot;<\/span><span style=\"color: #D4D4D4\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">}<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:16px 0 0 16px;width:100%;text-align:left;background-color:#1e1e1e\"><span style=\"background:#c7c7c7;padding:0.3rem 0.5rem 0.2rem;border-radius:1rem;font-size:0.8em;line-height:1;height:1.25rem;text-align:center;display:inline-flex;align-items:center;justify-content:center;color:#1e1e1e\">PHP<\/span><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>\/\/ \u6539\u5584\u5f8c\uff1amatch\u5f0f\uff08PHP8.0\u4ee5\u964d\uff09\n$msg = match($status) {\n    \"ok\" => \"\u6b63\u5e38\u3067\u3059\",\n    \"error\" => \"\u30a8\u30e9\u30fc\u3067\u3059\",\n    default => \"\u4e0d\u660e\u3067\u3059\",\n};\n<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #6A9955\">\/\/ \u6539\u5584\u5f8c\uff1amatch\u5f0f\uff08PHP8.0\u4ee5\u964d\uff09<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">$msg<\/span><span style=\"color: #D4D4D4\"> = <\/span><span style=\"color: #C586C0\">match<\/span><span style=\"color: #D4D4D4\">(<\/span><span style=\"color: #9CDCFE\">$status<\/span><span style=\"color: #D4D4D4\">) {<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #CE9178\">&quot;ok&quot;<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">=&gt;<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">&quot;\u6b63\u5e38\u3067\u3059&quot;<\/span><span style=\"color: #D4D4D4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #CE9178\">&quot;error&quot;<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">=&gt;<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">&quot;\u30a8\u30e9\u30fc\u3067\u3059&quot;<\/span><span style=\"color: #D4D4D4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">    <\/span><span style=\"color: #C586C0\">default<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">=&gt;<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">&quot;\u4e0d\u660e\u3067\u3059&quot;<\/span><span style=\"color: #D4D4D4\">,<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D4D4D4\">};<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">4. \u3088\u304f\u3042\u308b\u30df\u30b9\u30fb\u8aa4\u89e3\u30fb\u843d\u3068\u3057\u7a74<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u53e4\u3044\u30b3\u30fc\u30c9\u3092\u5358\u7d14\u306b\u30b3\u30d4\u30da\u3057\u3066\u66f8\u304d\u63db\u3048\u308b\u3068\u3001\u4f9d\u5b58\u95a2\u4fc2\u306e\u898b\u843d\u3068\u3057\u3084\u526f\u4f5c\u7528\u306e\u6e29\u5b58\u306b\u3064\u306a\u304c\u308a\u3084\u3059\u3044<\/li>\n\n\n\n<li>\u30af\u30e9\u30b9\u3092\u5c0e\u5165\u3057\u3066\u3082\u3001\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u578b\u6307\u5b9a\u3084\u30a2\u30af\u30bb\u30b9\u5236\u5fa1\uff08public\/private\uff09\u3092\u6020\u308b\u3068\u53ef\u8aad\u6027\u306f\u4e0a\u304c\u3089\u306a\u3044<\/li>\n\n\n\n<li><code>match<\/code>\u69cb\u6587\u306fPHP 8.0\u4ee5\u4e0a\u3067\u306e\u307f\u5229\u7528\u53ef\u80fd\u3002\u74b0\u5883\u5dee\u7570\u306b\u6ce8\u610f\uff08CI\u74b0\u5883\u306a\u3069\uff09<\/li>\n\n\n\n<li>\u30b0\u30ed\u30fc\u30d0\u30eb\u95a2\u6570\u3084\u591a\u6bb5\u30cd\u30b9\u30c8\u3055\u308c\u305f\u30ed\u30b8\u30c3\u30af\u306f\u3001\u307e\u305a\u95a2\u6570\u5206\u5272\u304b\u3089\u59cb\u3081\u308b\u3068\u6539\u5584\u3057\u3084\u3059\u3044<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">5. \u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u53e4\u3044PHP\u30b3\u30fc\u30c9\u306e\u6539\u5584\u306b\u306f\u3001\u300c\u8aad\u307f\u3084\u3059\u3055\u300d\u3068\u300c\u4f9d\u5b58\u95a2\u4fc2\u306e\u660e\u793a\u300d\u304c\u91cd\u8981\u3067\u3059\u3002\u5358\u306b\u66f8\u304d\u63db\u3048\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u8a2d\u8a08\u610f\u56f3\u3092\u4fdd\u3061\u3064\u3064\u3001PHP\u306e\u73fe\u4ee3\u7684\u306a\u6a5f\u80fd\uff08\u578b\u5ba3\u8a00\u3001\u30af\u30e9\u30b9\u69cb\u9020\u3001match\u5f0f\u306a\u3069\uff09\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u4fdd\u5b88\u6027\u3068\u5b89\u5168\u6027\u3092\u9ad8\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u7279\u306b\u696d\u52d9\u30b3\u30fc\u30c9\u3067\u306f\u3001\u4e00\u62ec\u5237\u65b0\u3088\u308a\u3082\u6bb5\u968e\u7684\u306a\u6539\u5584\u304c\u73fe\u5b9f\u7684\u3067\u3042\u308a\u3001\u30b9\u30e2\u30fc\u30eb\u30b9\u30c6\u30c3\u30d7\u3067\u306e\u7f6e\u304d\u63db\u3048\u304c\u52b9\u679c\u7684\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u672c\u8a18\u4e8b\u306e\u30dd\u30a4\u30f3\u30c8 2. \u53e4\u3044PHP\u30b3\u30fc\u30c9\u3092\u8aad\u307f\u3084\u3059\u304f\u66f8\u304d\u63db\u3048\u308b\u306b\u306f\uff1f PHP\u306f\u9577\u3044\u6b74\u53f2\u3092\u6301\u3064\u30b9\u30af\u30ea\u30d7\u30c8\u8a00\u8a9e\u3067\u3042\u308a\u30015.x\u4ee5\u524d\u306b\u66f8\u304b\u308c\u305f\u30b3\u30fc\u30c9\u306f\u3001\u73fe\u5728\u306e7.x\u301c8.x\u7cfb\u306e\u6587\u6cd5\u3084\u8a2d\u8a08\u601d\u60f3\u3068\u5927\u304d\u304f\u7570\u306a\u308a\u307e\u3059\u3002 \u7279\u306b\u53e4\u3044P [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":926,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[85],"tags":[],"class_list":["post-848","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php"],"_links":{"self":[{"href":"https:\/\/nexive.tech\/index.php?rest_route=\/wp\/v2\/posts\/848","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nexive.tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nexive.tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nexive.tech\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nexive.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=848"}],"version-history":[{"count":2,"href":"https:\/\/nexive.tech\/index.php?rest_route=\/wp\/v2\/posts\/848\/revisions"}],"predecessor-version":[{"id":927,"href":"https:\/\/nexive.tech\/index.php?rest_route=\/wp\/v2\/posts\/848\/revisions\/927"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nexive.tech\/index.php?rest_route=\/wp\/v2\/media\/926"}],"wp:attachment":[{"href":"https:\/\/nexive.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=848"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nexive.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=848"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nexive.tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}