{"id":151,"date":"2023-03-27T23:11:50","date_gmt":"2023-03-27T15:11:50","guid":{"rendered":"https:\/\/btc354.com\/?p=151"},"modified":"2023-09-03T08:09:53","modified_gmt":"2023-09-03T00:09:53","slug":"php%e5%ae%9e%e7%8e%b0%e9%82%ae%e7%ae%b1%e7%9a%842%e6%ae%b5%e8%ae%a4%e8%af%81","status":"publish","type":"post","link":"https:\/\/btc354.com\/index.php\/2023\/03\/27\/php%e5%ae%9e%e7%8e%b0%e9%82%ae%e7%ae%b1%e7%9a%842%e6%ae%b5%e8%ae%a4%e8%af%81\/","title":{"rendered":"php\u5b9e\u73b0\u90ae\u7bb1\u76842\u6bb5\u8ba4\u8bc1"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u9700\u6c42<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>1\uff1a\u8f93\u5165\u8d26\u53f7\u5bc6\u7801\u3002<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>2\uff1a\u901a\u8fc7\u90ae\u4ef6\u53d1\u9a8c\u8bc1\u7801<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>3\uff1a\u4f7f\u7528\u9a8c\u8bc1\u7801\u6765\u5b8c\u6210\u6700\u7ec8\u7684\u767b\u5f55\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">php\u5b9e\u73b0\u4ee3\u7801\u903b\u8f91<\/h2>\n\n\n\n<p>\u5b9e\u73b0\u90ae\u7bb1\u7684\u4e24\u6b65\u8ba4\u8bc1\u53ef\u4ee5\u91c7\u53d6\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u8f93\u5165\u8d26\u53f7\u5bc6\u7801\uff1a\u7528\u6237\u5728\u7f51\u7ad9\u4e0a\u8f93\u5165\u4ed6\u4eec\u7684\u90ae\u7bb1\u5730\u5740\u548c\u5bc6\u7801\u3002\u8fd9\u4e9b\u4fe1\u606f\u5c06\u88ab\u53d1\u9001\u5230\u670d\u52a1\u5668\u7aef\u4ee5\u8fdb\u884c\u9a8c\u8bc1\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528 PHP \u7684\u5185\u7f6e\u51fd\u6570\u6765\u5b9e\u73b0\u6b64\u6b65\u9aa4\u3002<\/li>\n\n\n\n<li>\u53d1\u9001\u9a8c\u8bc1\u7801\uff1a\u5982\u679c\u7528\u6237\u901a\u8fc7\u4e86\u7b2c\u4e00\u6b65\u9a8c\u8bc1\uff0c\u670d\u52a1\u5668\u5c06\u5411\u7528\u6237\u7684\u90ae\u7bb1\u5730\u5740\u53d1\u9001\u4e00\u5c01\u5305\u542b\u9a8c\u8bc1\u7801\u7684\u90ae\u4ef6\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528 PHP \u7684\u5185\u7f6e\u90ae\u4ef6\u51fd\u6570\u6216\u7b2c\u4e09\u65b9\u5e93\uff08\u4f8b\u5982PHPMailer\uff09\u6765\u53d1\u9001\u7535\u5b50\u90ae\u4ef6\u3002<\/li>\n\n\n\n<li>\u8f93\u5165\u9a8c\u8bc1\u7801\uff1a\u7528\u6237\u5728\u7f51\u7ad9\u4e0a\u8f93\u5165\u4ed6\u4eec\u4ece\u7535\u5b50\u90ae\u4ef6\u4e2d\u6536\u5230\u7684\u9a8c\u8bc1\u7801\u3002\u8fd9\u4e9b\u4fe1\u606f\u5c06\u88ab\u53d1\u9001\u5230\u670d\u52a1\u5668\u7aef\u4ee5\u8fdb\u884c\u9a8c\u8bc1\u3002\u5982\u679c\u9a8c\u8bc1\u7801\u5339\u914d\uff0c\u7528\u6237\u5c06\u88ab\u5141\u8bb8\u767b\u5f55\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u57fa\u672c\u7684\u793a\u4f8b\u4ee3\u7801\uff0c\u5176\u4e2d\u4f7f\u7528\u4e86PHPMailer\u5e93\u6765\u53d1\u9001\u7535\u5b50\u90ae\u4ef6\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php\n\/\/ \u5f15\u5165 PHPMailer \u5e93\nuse PHPMailer\\PHPMailer\\PHPMailer;\nuse PHPMailer\\PHPMailer\\Exception;\n\nrequire &#039;vendor\/autoload.php&#039;;\n\n\/\/ \u914d\u7f6e\u90ae\u4ef6\u670d\u52a1\u5668\n$mail = new PHPMailer(true);\n$mail-&gt;isSMTP();\n$mail-&gt;Host = &#039;smtp.example.com&#039;; \/\/ \u90ae\u4ef6\u670d\u52a1\u5668\n$mail-&gt;SMTPAuth = true;\n$mail-&gt;Username = &#039;your_username&#039;; \/\/ \u90ae\u7bb1\u5730\u5740\n$mail-&gt;Password = &#039;your_password&#039;; \/\/ \u90ae\u7bb1\u5bc6\u7801\n$mail-&gt;SMTPSecure = &#039;tls&#039;;\n$mail-&gt;Port = 587;\n\n\/\/ \u9a8c\u8bc1\u7528\u6237\u8f93\u5165\u7684\u90ae\u7bb1\u548c\u5bc6\u7801\nif($_POST&#x5B;&#039;email&#039;] == &#039;user@example.com&#039; &amp;&amp; $_POST&#x5B;&#039;password&#039;] == &#039;password&#039;) {\n    \/\/ \u751f\u6210\u9a8c\u8bc1\u7801\n    $code = rand(100000,999999);\n\n    \/\/ \u53d1\u9001\u9a8c\u8bc1\u7801\u5230\u7528\u6237\u7684\u90ae\u7bb1\n    $mail-&gt;setFrom(&#039;from@example.com&#039;, &#039;Your Name&#039;);\n    $mail-&gt;addAddress($_POST&#x5B;&#039;email&#039;]);\n    $mail-&gt;Subject = &#039;Verification Code&#039;;\n    $mail-&gt;Body = &#039;Your verification code is: &#039; . $code;\n    $mail-&gt;send();\n\n    \/\/ \u5b58\u50a8\u9a8c\u8bc1\u7801\n    $_SESSION&#x5B;&#039;verification_code&#039;] = $code;\n\n    \/\/ \u63d0\u793a\u7528\u6237\u8f93\u5165\u9a8c\u8bc1\u7801\n    echo &#039;Please enter the verification code sent to your email:&#039;;\n} else {\n    \/\/ \u7528\u6237\u540d\u6216\u5bc6\u7801\u4e0d\u6b63\u786e\n    echo &#039;Invalid username or password.&#039;;\n}\n\n\/\/ \u9a8c\u8bc1\u7528\u6237\u8f93\u5165\u7684\u9a8c\u8bc1\u7801\nif(isset($_POST&#x5B;&#039;verification_code&#039;])) {\n    if($_POST&#x5B;&#039;verification_code&#039;] == $_SESSION&#x5B;&#039;verification_code&#039;]) {\n        \/\/ \u9a8c\u8bc1\u6210\u529f\uff0c\u5141\u8bb8\u7528\u6237\u767b\u5f55\n        echo &#039;Verification successful. Logged in as &#039; . $_POST&#x5B;&#039;email&#039;];\n    } else {\n        \/\/ \u9a8c\u8bc1\u7801\u4e0d\u5339\u914d\n        echo &#039;Invalid verification code.&#039;;\n    }\n}\n?&gt;\n\n<\/pre><\/div>\n\n\n<p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u60a8\u9700\u8981\u6dfb\u52a0\u66f4\u591a\u5b89\u5168\u6027\u63aa\u65bd\uff0c\u4f8b\u5982\u52a0\u5bc6\u5bc6\u7801\uff0c\u4f7f\u7528 CSRF \u4fdd\u62a4\u7b49\u3002<\/p>\n\n\n\n<p>\u4e3a\u4e86\u4fdd\u62a4\u7528\u6237\u7684\u8d26\u53f7\u5b89\u5168\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u5bc6\u7801\u54c8\u5e0c\u52a0\u5bc6\u6280\u672f\uff0c\u5c06\u7528\u6237\u5bc6\u7801\u8f6c\u6362\u4e3a\u4e0d\u53ef\u9006\u7684\u54c8\u5e0c\u503c\u3002\u8fd9\u6837\u5373\u4f7f\u670d\u52a1\u5668\u6570\u636e\u6cc4\u6f0f\uff0c\u9ed1\u5ba2\u4e5f\u65e0\u6cd5\u5f97\u5230\u7528\u6237\u7684\u660e\u6587\u5bc6\u7801\u3002\u5e38\u7528\u7684\u5bc6\u7801\u54c8\u5e0c\u7b97\u6cd5\u6709 MD5\u3001SHA-1\u3001SHA-256\u3001SHA-512 \u7b49\u3002\u4e0b\u9762\u662f\u4f7f\u7528 PHP \u81ea\u5e26\u7684 password_hash() \u51fd\u6570\u8fdb\u884c\u5bc6\u7801\u54c8\u5e0c\u52a0\u5bc6\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n\/\/ \u9a8c\u8bc1\u7528\u6237\u8f93\u5165\u7684\u90ae\u7bb1\u548c\u5bc6\u7801\nif($_POST&#x5B;&#039;email&#039;] == &#039;user@example.com&#039; &amp;&amp; password_verify($_POST&#x5B;&#039;password&#039;], &#039;$2y$10$abcdefghijklmnopqrstuv&#039;)) {\n    \/\/ \u751f\u6210\u9a8c\u8bc1\u7801\n    $code = rand(100000,999999);\n\n    \/\/ \u53d1\u9001\u9a8c\u8bc1\u7801\u5230\u7528\u6237\u7684\u90ae\u7bb1\n    \/\/ ...\n\n    \/\/ \u5b58\u50a8\u9a8c\u8bc1\u7801\n    $_SESSION&#x5B;&#039;verification_code&#039;] = $code;\n\n    \/\/ \u63d0\u793a\u7528\u6237\u8f93\u5165\u9a8c\u8bc1\u7801\n    \/\/ ...\n\n} else {\n    \/\/ \u7528\u6237\u540d\u6216\u5bc6\u7801\u4e0d\u6b63\u786e\n    \/\/ ...\n}\n\n<\/pre><\/div>\n\n\n<p>\u5176\u4e2d\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662f\u54c8\u5e0c\u503c\uff0c\u53ef\u4ee5\u4f7f\u7528 password_hash() \u51fd\u6570\u751f\u6210\u3002\u4f8b\u5982\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$password_hash = password_hash('password', PASSWORD_DEFAULT);\necho $password_hash;\n<\/code><\/pre>\n\n\n\n<p>\u9664\u4e86\u5bc6\u7801\u54c8\u5e0c\u52a0\u5bc6\uff0c\u8fd8\u9700\u8981\u4f7f\u7528 CSRF\uff08\u8de8\u7ad9\u8bf7\u6c42\u4f2a\u9020\uff09\u4fdd\u62a4\uff0c\u9632\u6b62\u9ed1\u5ba2\u4f2a\u9020\u7528\u6237\u8bf7\u6c42\u3002CSRF \u653b\u51fb\u901a\u5e38\u662f\u5229\u7528\u7528\u6237\u767b\u5f55\u72b6\u6001\u4e0b\u7684 Cookie\uff0c\u4f2a\u9020 POST \u8bf7\u6c42\u3002\u4e3a\u4e86\u9632\u6b62 CSRF \u653b\u51fb\uff0c\u6211\u4eec\u53ef\u4ee5\u4e3a\u6bcf\u4e2a\u8868\u5355\u6dfb\u52a0\u4e00\u4e2a\u968f\u673a\u751f\u6210\u7684\u4ee4\u724c\uff08Token\uff09\uff0c\u5728\u670d\u52a1\u5668\u7aef\u9a8c\u8bc1\u4ee4\u724c\u662f\u5426\u5339\u914d\u3002\u4e0b\u9762\u662f\u4f7f\u7528 PHP \u81ea\u5e26\u7684 CSRF \u4fdd\u62a4\u673a\u5236\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n\/\/ \u751f\u6210 CSRF \u4ee4\u724c\n$csrf_token = bin2hex(random_bytes(32));\n$_SESSION&#x5B;&#039;csrf_token&#039;] = $csrf_token;\n\n\/\/ \u8f93\u51fa\u8868\u5355\necho &#039;&lt;form method=&quot;post&quot;&gt;&#039;;\necho &#039;&lt;input type=&quot;hidden&quot; name=&quot;csrf_token&quot; value=&quot;&#039; . $csrf_token . &#039;&quot;&gt;&#039;;\necho &#039;&lt;input type=&quot;text&quot; name=&quot;verification_code&quot;&gt;&#039;;\necho &#039;&lt;input type=&quot;submit&quot; value=&quot;Submit&quot;&gt;&#039;;\necho &#039;&lt;\/form&gt;&#039;;\n\n\/\/ \u9a8c\u8bc1 CSRF \u4ee4\u724c\nif(isset($_POST&#x5B;&#039;verification_code&#039;]) &amp;&amp; isset($_POST&#x5B;&#039;csrf_token&#039;]) &amp;&amp; $_POST&#x5B;&#039;csrf_token&#039;] === $_SESSION&#x5B;&#039;csrf_token&#039;]) {\n    \/\/ \u9a8c\u8bc1\u9a8c\u8bc1\u7801\n    \/\/ ...\n} else {\n    \/\/ CSRF \u9a8c\u8bc1\u5931\u8d25\n    \/\/ ...\n}\n\n<\/pre><\/div>\n\n\n<p>\u5176\u4e2d\uff0c\u4f7f\u7528 random_bytes() \u51fd\u6570\u751f\u6210 32 \u4e2a\u968f\u673a\u5b57\u8282\uff0c\u7136\u540e\u4f7f\u7528 bin2hex() \u51fd\u6570\u5c06\u5176\u8f6c\u6362\u4e3a 64 \u4e2a\u5b57\u7b26\u7684\u5341\u516d\u8fdb\u5236\u5b57\u7b26\u4e32\u3002\u5728\u8f93\u51fa\u8868\u5355\u65f6\uff0c\u5c06\u4ee4\u724c\u503c\u4fdd\u5b58\u5728\u9690\u85cf\u7684 input \u6807\u7b7e\u4e2d\uff0c\u63d0\u4ea4\u8868\u5355\u65f6\u5c06\u4ee4\u724c\u503c\u4e0e $_SESSION \u4e2d\u4fdd\u5b58\u7684\u503c\u8fdb\u884c\u6bd4\u8f83\u3002\u5982\u679c\u4ee4\u724c\u5339\u914d\uff0c\u5219\u8ba4\u4e3a\u8bf7\u6c42\u5408\u6cd5\u3002<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\"><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u9700\u6c42 php\u5b9e\u73b0\u4ee3\u7801\u903b\u8f91 \u5b9e\u73b0\u90ae\u7bb1\u7684\u4e24\u6b65\u8ba4\u8bc1\u53ef\u4ee5\u91c7\u53d6\u4ee5\u4e0b\u6b65\u9aa4\uff1a \u4ee5\u4e0b\u662f\u4e00\u4e2a\u57fa\u672c\u7684\u793a\u4f8b\u4ee3\u7801\uff0c\u5176\u4e2d\u4f7f\u7528\u4e86PHPMa [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":152,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-151","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>php\u5b9e\u73b0\u90ae\u7bb1\u76842\u6bb5\u8ba4\u8bc1 - \u4e2a\u4eba\u5b66\u4e60\u7ad9\u70b9<\/title>\n<meta name=\"description\" content=\"\u4e2a\u4eba\u5b66\u4e60\u7ad9\u70b9 php\u5b9e\u73b0\u90ae\u7bb1\u76842\u6bb5\u8ba4\u8bc1\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/btc354.com\/index.php\/2023\/03\/27\/php\u5b9e\u73b0\u90ae\u7bb1\u76842\u6bb5\u8ba4\u8bc1\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"php\u5b9e\u73b0\u90ae\u7bb1\u76842\u6bb5\u8ba4\u8bc1 - \u4e2a\u4eba\u5b66\u4e60\u7ad9\u70b9\" \/>\n<meta property=\"og:description\" content=\"\u4e2a\u4eba\u5b66\u4e60\u7ad9\u70b9 php\u5b9e\u73b0\u90ae\u7bb1\u76842\u6bb5\u8ba4\u8bc1\" \/>\n<meta property=\"og:url\" content=\"https:\/\/btc354.com\/index.php\/2023\/03\/27\/php\u5b9e\u73b0\u90ae\u7bb1\u76842\u6bb5\u8ba4\u8bc1\/\" \/>\n<meta property=\"og:site_name\" content=\"\u4e2a\u4eba\u5b66\u4e60\u7ad9\u70b9\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-27T15:11:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-03T00:09:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/btc354.com\/wp-content\/uploads\/2023\/03\/1a60a18ccbd0f8c76863cfb5407a3e7c.png\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"430\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"tan, keito\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@tqd354\" \/>\n<meta name=\"twitter:site\" content=\"@tqd354\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"tan, keito\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/btc354.com\\\/index.php\\\/2023\\\/03\\\/27\\\/php%e5%ae%9e%e7%8e%b0%e9%82%ae%e7%ae%b1%e7%9a%842%e6%ae%b5%e8%ae%a4%e8%af%81\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/btc354.com\\\/index.php\\\/2023\\\/03\\\/27\\\/php%e5%ae%9e%e7%8e%b0%e9%82%ae%e7%ae%b1%e7%9a%842%e6%ae%b5%e8%ae%a4%e8%af%81\\\/\"},\"author\":{\"name\":\"tan, keito\",\"@id\":\"https:\\\/\\\/btc354.com\\\/#\\\/schema\\\/person\\\/00e13932981b0e8ae19d3ae6b5734178\"},\"headline\":\"php\u5b9e\u73b0\u90ae\u7bb1\u76842\u6bb5\u8ba4\u8bc1\",\"datePublished\":\"2023-03-27T15:11:50+00:00\",\"dateModified\":\"2023-09-03T00:09:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/btc354.com\\\/index.php\\\/2023\\\/03\\\/27\\\/php%e5%ae%9e%e7%8e%b0%e9%82%ae%e7%ae%b1%e7%9a%842%e6%ae%b5%e8%ae%a4%e8%af%81\\\/\"},\"wordCount\":30,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/btc354.com\\\/#\\\/schema\\\/person\\\/00e13932981b0e8ae19d3ae6b5734178\"},\"image\":{\"@id\":\"https:\\\/\\\/btc354.com\\\/index.php\\\/2023\\\/03\\\/27\\\/php%e5%ae%9e%e7%8e%b0%e9%82%ae%e7%ae%b1%e7%9a%842%e6%ae%b5%e8%ae%a4%e8%af%81\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/btc354.com\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/1a60a18ccbd0f8c76863cfb5407a3e7c.png\",\"articleSection\":[\"php\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/btc354.com\\\/index.php\\\/2023\\\/03\\\/27\\\/php%e5%ae%9e%e7%8e%b0%e9%82%ae%e7%ae%b1%e7%9a%842%e6%ae%b5%e8%ae%a4%e8%af%81\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/btc354.com\\\/index.php\\\/2023\\\/03\\\/27\\\/php%e5%ae%9e%e7%8e%b0%e9%82%ae%e7%ae%b1%e7%9a%842%e6%ae%b5%e8%ae%a4%e8%af%81\\\/\",\"url\":\"https:\\\/\\\/btc354.com\\\/index.php\\\/2023\\\/03\\\/27\\\/php%e5%ae%9e%e7%8e%b0%e9%82%ae%e7%ae%b1%e7%9a%842%e6%ae%b5%e8%ae%a4%e8%af%81\\\/\",\"name\":\"php\u5b9e\u73b0\u90ae\u7bb1\u76842\u6bb5\u8ba4\u8bc1 - \u4e2a\u4eba\u5b66\u4e60\u7ad9\u70b9\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/btc354.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/btc354.com\\\/index.php\\\/2023\\\/03\\\/27\\\/php%e5%ae%9e%e7%8e%b0%e9%82%ae%e7%ae%b1%e7%9a%842%e6%ae%b5%e8%ae%a4%e8%af%81\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/btc354.com\\\/index.php\\\/2023\\\/03\\\/27\\\/php%e5%ae%9e%e7%8e%b0%e9%82%ae%e7%ae%b1%e7%9a%842%e6%ae%b5%e8%ae%a4%e8%af%81\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/btc354.com\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/1a60a18ccbd0f8c76863cfb5407a3e7c.png\",\"datePublished\":\"2023-03-27T15:11:50+00:00\",\"dateModified\":\"2023-09-03T00:09:53+00:00\",\"description\":\"\u4e2a\u4eba\u5b66\u4e60\u7ad9\u70b9 php\u5b9e\u73b0\u90ae\u7bb1\u76842\u6bb5\u8ba4\u8bc1\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/btc354.com\\\/index.php\\\/2023\\\/03\\\/27\\\/php%e5%ae%9e%e7%8e%b0%e9%82%ae%e7%ae%b1%e7%9a%842%e6%ae%b5%e8%ae%a4%e8%af%81\\\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/btc354.com\\\/index.php\\\/2023\\\/03\\\/27\\\/php%e5%ae%9e%e7%8e%b0%e9%82%ae%e7%ae%b1%e7%9a%842%e6%ae%b5%e8%ae%a4%e8%af%81\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/btc354.com\\\/index.php\\\/2023\\\/03\\\/27\\\/php%e5%ae%9e%e7%8e%b0%e9%82%ae%e7%ae%b1%e7%9a%842%e6%ae%b5%e8%ae%a4%e8%af%81\\\/#primaryimage\",\"url\":\"https:\\\/\\\/btc354.com\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/1a60a18ccbd0f8c76863cfb5407a3e7c.png\",\"contentUrl\":\"https:\\\/\\\/btc354.com\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/1a60a18ccbd0f8c76863cfb5407a3e7c.png\",\"width\":750,\"height\":430},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/btc354.com\\\/index.php\\\/2023\\\/03\\\/27\\\/php%e5%ae%9e%e7%8e%b0%e9%82%ae%e7%ae%b1%e7%9a%842%e6%ae%b5%e8%ae%a4%e8%af%81\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\\\/\\\/btc354.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"php\u5b9e\u73b0\u90ae\u7bb1\u76842\u6bb5\u8ba4\u8bc1\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/btc354.com\\\/#website\",\"url\":\"https:\\\/\\\/btc354.com\\\/\",\"name\":\"\u4e2a\u4eba\u5b66\u4e60\u7ad9\u70b9\",\"description\":\"tiro354\",\"publisher\":{\"@id\":\"https:\\\/\\\/btc354.com\\\/#\\\/schema\\\/person\\\/00e13932981b0e8ae19d3ae6b5734178\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/btc354.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/btc354.com\\\/#\\\/schema\\\/person\\\/00e13932981b0e8ae19d3ae6b5734178\",\"name\":\"tan, keito\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/btc354.com\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/cropped-tiro354_logo7-1.png\",\"url\":\"https:\\\/\\\/btc354.com\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/cropped-tiro354_logo7-1.png\",\"contentUrl\":\"https:\\\/\\\/btc354.com\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/cropped-tiro354_logo7-1.png\",\"width\":1023,\"height\":1023,\"caption\":\"tan, keito\"},\"logo\":{\"@id\":\"https:\\\/\\\/btc354.com\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/cropped-tiro354_logo7-1.png\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/tqd354\"],\"url\":\"https:\\\/\\\/btc354.com\\\/index.php\\\/author\\\/tanqidong\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"php\u5b9e\u73b0\u90ae\u7bb1\u76842\u6bb5\u8ba4\u8bc1 - \u4e2a\u4eba\u5b66\u4e60\u7ad9\u70b9","description":"\u4e2a\u4eba\u5b66\u4e60\u7ad9\u70b9 php\u5b9e\u73b0\u90ae\u7bb1\u76842\u6bb5\u8ba4\u8bc1","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/btc354.com\/index.php\/2023\/03\/27\/php\u5b9e\u73b0\u90ae\u7bb1\u76842\u6bb5\u8ba4\u8bc1\/","og_locale":"zh_CN","og_type":"article","og_title":"php\u5b9e\u73b0\u90ae\u7bb1\u76842\u6bb5\u8ba4\u8bc1 - \u4e2a\u4eba\u5b66\u4e60\u7ad9\u70b9","og_description":"\u4e2a\u4eba\u5b66\u4e60\u7ad9\u70b9 php\u5b9e\u73b0\u90ae\u7bb1\u76842\u6bb5\u8ba4\u8bc1","og_url":"https:\/\/btc354.com\/index.php\/2023\/03\/27\/php\u5b9e\u73b0\u90ae\u7bb1\u76842\u6bb5\u8ba4\u8bc1\/","og_site_name":"\u4e2a\u4eba\u5b66\u4e60\u7ad9\u70b9","article_published_time":"2023-03-27T15:11:50+00:00","article_modified_time":"2023-09-03T00:09:53+00:00","og_image":[{"width":750,"height":430,"url":"https:\/\/btc354.com\/wp-content\/uploads\/2023\/03\/1a60a18ccbd0f8c76863cfb5407a3e7c.png","type":"image\/png"}],"author":"tan, keito","twitter_card":"summary_large_image","twitter_creator":"@tqd354","twitter_site":"@tqd354","twitter_misc":{"\u4f5c\u8005":"tan, keito","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/btc354.com\/index.php\/2023\/03\/27\/php%e5%ae%9e%e7%8e%b0%e9%82%ae%e7%ae%b1%e7%9a%842%e6%ae%b5%e8%ae%a4%e8%af%81\/#article","isPartOf":{"@id":"https:\/\/btc354.com\/index.php\/2023\/03\/27\/php%e5%ae%9e%e7%8e%b0%e9%82%ae%e7%ae%b1%e7%9a%842%e6%ae%b5%e8%ae%a4%e8%af%81\/"},"author":{"name":"tan, keito","@id":"https:\/\/btc354.com\/#\/schema\/person\/00e13932981b0e8ae19d3ae6b5734178"},"headline":"php\u5b9e\u73b0\u90ae\u7bb1\u76842\u6bb5\u8ba4\u8bc1","datePublished":"2023-03-27T15:11:50+00:00","dateModified":"2023-09-03T00:09:53+00:00","mainEntityOfPage":{"@id":"https:\/\/btc354.com\/index.php\/2023\/03\/27\/php%e5%ae%9e%e7%8e%b0%e9%82%ae%e7%ae%b1%e7%9a%842%e6%ae%b5%e8%ae%a4%e8%af%81\/"},"wordCount":30,"commentCount":0,"publisher":{"@id":"https:\/\/btc354.com\/#\/schema\/person\/00e13932981b0e8ae19d3ae6b5734178"},"image":{"@id":"https:\/\/btc354.com\/index.php\/2023\/03\/27\/php%e5%ae%9e%e7%8e%b0%e9%82%ae%e7%ae%b1%e7%9a%842%e6%ae%b5%e8%ae%a4%e8%af%81\/#primaryimage"},"thumbnailUrl":"https:\/\/btc354.com\/wp-content\/uploads\/2023\/03\/1a60a18ccbd0f8c76863cfb5407a3e7c.png","articleSection":["php"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/btc354.com\/index.php\/2023\/03\/27\/php%e5%ae%9e%e7%8e%b0%e9%82%ae%e7%ae%b1%e7%9a%842%e6%ae%b5%e8%ae%a4%e8%af%81\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/btc354.com\/index.php\/2023\/03\/27\/php%e5%ae%9e%e7%8e%b0%e9%82%ae%e7%ae%b1%e7%9a%842%e6%ae%b5%e8%ae%a4%e8%af%81\/","url":"https:\/\/btc354.com\/index.php\/2023\/03\/27\/php%e5%ae%9e%e7%8e%b0%e9%82%ae%e7%ae%b1%e7%9a%842%e6%ae%b5%e8%ae%a4%e8%af%81\/","name":"php\u5b9e\u73b0\u90ae\u7bb1\u76842\u6bb5\u8ba4\u8bc1 - \u4e2a\u4eba\u5b66\u4e60\u7ad9\u70b9","isPartOf":{"@id":"https:\/\/btc354.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/btc354.com\/index.php\/2023\/03\/27\/php%e5%ae%9e%e7%8e%b0%e9%82%ae%e7%ae%b1%e7%9a%842%e6%ae%b5%e8%ae%a4%e8%af%81\/#primaryimage"},"image":{"@id":"https:\/\/btc354.com\/index.php\/2023\/03\/27\/php%e5%ae%9e%e7%8e%b0%e9%82%ae%e7%ae%b1%e7%9a%842%e6%ae%b5%e8%ae%a4%e8%af%81\/#primaryimage"},"thumbnailUrl":"https:\/\/btc354.com\/wp-content\/uploads\/2023\/03\/1a60a18ccbd0f8c76863cfb5407a3e7c.png","datePublished":"2023-03-27T15:11:50+00:00","dateModified":"2023-09-03T00:09:53+00:00","description":"\u4e2a\u4eba\u5b66\u4e60\u7ad9\u70b9 php\u5b9e\u73b0\u90ae\u7bb1\u76842\u6bb5\u8ba4\u8bc1","breadcrumb":{"@id":"https:\/\/btc354.com\/index.php\/2023\/03\/27\/php%e5%ae%9e%e7%8e%b0%e9%82%ae%e7%ae%b1%e7%9a%842%e6%ae%b5%e8%ae%a4%e8%af%81\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/btc354.com\/index.php\/2023\/03\/27\/php%e5%ae%9e%e7%8e%b0%e9%82%ae%e7%ae%b1%e7%9a%842%e6%ae%b5%e8%ae%a4%e8%af%81\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/btc354.com\/index.php\/2023\/03\/27\/php%e5%ae%9e%e7%8e%b0%e9%82%ae%e7%ae%b1%e7%9a%842%e6%ae%b5%e8%ae%a4%e8%af%81\/#primaryimage","url":"https:\/\/btc354.com\/wp-content\/uploads\/2023\/03\/1a60a18ccbd0f8c76863cfb5407a3e7c.png","contentUrl":"https:\/\/btc354.com\/wp-content\/uploads\/2023\/03\/1a60a18ccbd0f8c76863cfb5407a3e7c.png","width":750,"height":430},{"@type":"BreadcrumbList","@id":"https:\/\/btc354.com\/index.php\/2023\/03\/27\/php%e5%ae%9e%e7%8e%b0%e9%82%ae%e7%ae%b1%e7%9a%842%e6%ae%b5%e8%ae%a4%e8%af%81\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/btc354.com\/"},{"@type":"ListItem","position":2,"name":"php\u5b9e\u73b0\u90ae\u7bb1\u76842\u6bb5\u8ba4\u8bc1"}]},{"@type":"WebSite","@id":"https:\/\/btc354.com\/#website","url":"https:\/\/btc354.com\/","name":"\u4e2a\u4eba\u5b66\u4e60\u7ad9\u70b9","description":"tiro354","publisher":{"@id":"https:\/\/btc354.com\/#\/schema\/person\/00e13932981b0e8ae19d3ae6b5734178"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/btc354.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/btc354.com\/#\/schema\/person\/00e13932981b0e8ae19d3ae6b5734178","name":"tan, keito","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/btc354.com\/wp-content\/uploads\/2025\/01\/cropped-tiro354_logo7-1.png","url":"https:\/\/btc354.com\/wp-content\/uploads\/2025\/01\/cropped-tiro354_logo7-1.png","contentUrl":"https:\/\/btc354.com\/wp-content\/uploads\/2025\/01\/cropped-tiro354_logo7-1.png","width":1023,"height":1023,"caption":"tan, keito"},"logo":{"@id":"https:\/\/btc354.com\/wp-content\/uploads\/2025\/01\/cropped-tiro354_logo7-1.png"},"sameAs":["https:\/\/x.com\/tqd354"],"url":"https:\/\/btc354.com\/index.php\/author\/tanqidong\/"}]}},"_links":{"self":[{"href":"https:\/\/btc354.com\/index.php\/wp-json\/wp\/v2\/posts\/151","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/btc354.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/btc354.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/btc354.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/btc354.com\/index.php\/wp-json\/wp\/v2\/comments?post=151"}],"version-history":[{"count":5,"href":"https:\/\/btc354.com\/index.php\/wp-json\/wp\/v2\/posts\/151\/revisions"}],"predecessor-version":[{"id":463,"href":"https:\/\/btc354.com\/index.php\/wp-json\/wp\/v2\/posts\/151\/revisions\/463"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/btc354.com\/index.php\/wp-json\/wp\/v2\/media\/152"}],"wp:attachment":[{"href":"https:\/\/btc354.com\/index.php\/wp-json\/wp\/v2\/media?parent=151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/btc354.com\/index.php\/wp-json\/wp\/v2\/categories?post=151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/btc354.com\/index.php\/wp-json\/wp\/v2\/tags?post=151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}