{"id":30887,"date":"2023-06-09T12:23:07","date_gmt":"2023-03-10T06:11:08","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8php%e7%bc%96%e5%86%99%e7%9a%84%e3%83%89%e3%83%89%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3\/"},"modified":"2025-08-12T21:14:40","modified_gmt":"2025-08-12T13:14:40","slug":"%e4%bd%bf%e7%94%a8php%e7%bc%96%e5%86%99%e7%9a%84%e3%83%89%e3%83%89%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8php%e7%bc%96%e5%86%99%e7%9a%84%e3%83%89%e3%83%89%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3\/","title":{"rendered":"\u4f7f\u7528PHP\u7f16\u5199\u7684\u30c9\u30c9\u30b9\u30b3\u30b9\u30b3\u30b9\u30b3"},"content":{"rendered":"<h1>\u54b1\u4eec\u6765\u5efa\u7acb\u4e00\u4e2a\u7b80\u79f0\u4e3a\u201cRa\u90e8\u201d\u7684\u6811\u8393\u6d3e\u793e\u56e2\u5427\u3002<\/h1>\n<p>\u56e0\u4e3a\u7a81\u7136\u542c\u5230\u90a3\u6837\u7684\u58f0\u97f3\uff0c\u6211\u51b3\u5b9a\u4e3a\u4e86\u632f\u594b\u58eb\u6c14\u800c\u6ce8\u5165\u7231\u3002<\/p>\n<h1>\u91cd\u8981\u4e8b\u9879<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u300c\u30c9\u300d\u3068\u300c\u30b9\u30b3\u300d\u3092\u30e9\u30f3\u30c0\u30e0\u306b\u62bd\u9078\u3059\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u300c\u30c9\u30c9\u30b9\u30b3\u30b9\u30b3\u30b9\u30b3\u30c9\u30c9\u30b9\u30b3\u30b9\u30b3\u30b9\u30b3\u30c9\u30c9\u30b9\u30b3\u30b9\u30b3\u30b9\u30b3\u300d\u304c\u306a\u3089\u3093\u3060\u3089\u30e9\u30d6\u6ce8\u5165\u3059\u308b<\/ul>\n<h1>\u843d\u5730\u8fd0\u8425<\/h1>\n<pre class=\"post-pre\"><code><span class=\"o\">&lt;?<\/span><span class=\"k\">for<\/span><span class=\"p\">(;<\/span><span class=\"o\">!<\/span><span class=\"nb\">preg_match<\/span><span class=\"p\">(<\/span><span class=\"s2\">\"\/(00111)<\/span><span class=\"si\">{<\/span><span class=\"nv\">3<\/span><span class=\"si\">}<\/span><span class=\"s2\">\/\"<\/span><span class=\"p\">,<\/span><span class=\"nv\">$s<\/span><span class=\"mf\">.<\/span><span class=\"o\">=<\/span><span class=\"nb\">rand<\/span><span class=\"p\">()<\/span><span class=\"o\">%<\/span><span class=\"mi\">2<\/span><span class=\"p\">);)<\/span><span class=\"cp\">?&gt;&lt;?=<\/span><span class=\"nb\">strtr<\/span><span class=\"p\">(<\/span><span class=\"nv\">$s<\/span><span class=\"p\">,[<\/span><span class=\"n\">\u30c9<\/span><span class=\"p\">,<\/span><span class=\"n\">\u30b9\u30b3<\/span><span class=\"p\">])<\/span><span class=\"cp\">?&gt;<\/span>\u30e9\u30d6\u6ce8\u5165\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d09e737434c4406be2ff8\/6-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2016-03-18 21.20.41.png\" \/><\/div>\n<h1>\u4f3c\u66fe\u76f8\u8bc6\u7684\u611f\u89c9\u3002<\/h1>\n<p>\u4e5f\u8bb8\u53ef\u4ee5\u7528PHP\u6765\u5b9e\u73b0&#8221;\u30ba\u30f3\u30c9\u30b3\u30ad\u30e8\u30b7&#8221;\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u54b1\u4eec\u6765\u5efa\u7acb\u4e00\u4e2a\u7b80\u79f0\u4e3a\u201cRa\u90e8\u201d\u7684\u6811\u8393\u6d3e\u793e\u56e2\u5427\u3002 \u56e0\u4e3a\u7a81\u7136\u542c\u5230\u90a3\u6837\u7684\u58f0\u97f3\uff0c\u6211\u51b3\u5b9a\u4e3a\u4e86\u632f\u594b\u58eb\u6c14\u800c\u6ce8\u5165\u7231\u3002 \u91cd\u8981\u4e8b\u9879 [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[227],"class_list":["post-30887","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-227"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f7f\u7528PHP\u7f16\u5199\u7684\u30c9\u30c9\u30b9\u30b3\u30b9\u30b3\u30b9\u30b3 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u5173\u4e8e\u4f7f\u7528PHP\u7f16\u5199\u7684\u30c9\u30c9\u30b9\u30b3\u30b9\u30b3\u30b9\u30b3\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528php\u7f16\u5199\u7684\u30c9\u30c9\u30b9\u30b3\u30b9\u30b3\u30b9\u30b3\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528PHP\u7f16\u5199\u7684\u30c9\u30c9\u30b9\u30b3\u30b9\u30b3\u30b9\u30b3\" \/>\n<meta property=\"og:description\" content=\"\u5173\u4e8e\u4f7f\u7528PHP\u7f16\u5199\u7684\u30c9\u30c9\u30b9\u30b3\u30b9\u30b3\u30b9\u30b3\u7684\u6280\u672f\u6587\u7ae0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528php\u7f16\u5199\u7684\u30c9\u30c9\u30b9\u30b3\u30b9\u30b3\u30b9\u30b3\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-10T06:11:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-12T13:14:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d09e737434c4406be2ff8\/6-0.png\" \/>\n<meta name=\"author\" content=\"\u6587, \u7fd4\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6587, \u7fd4\" \/>\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\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8php%e7%bc%96%e5%86%99%e7%9a%84%e3%83%89%e3%83%89%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8php%e7%bc%96%e5%86%99%e7%9a%84%e3%83%89%e3%83%89%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3\/\",\"name\":\"\u4f7f\u7528PHP\u7f16\u5199\u7684\u30c9\u30c9\u30b9\u30b3\u30b9\u30b3\u30b9\u30b3 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-03-10T06:11:08+00:00\",\"dateModified\":\"2025-08-12T13:14:40+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c\"},\"description\":\"\u5173\u4e8e\u4f7f\u7528PHP\u7f16\u5199\u7684\u30c9\u30c9\u30b9\u30b3\u30b9\u30b3\u30b9\u30b3\u7684\u6280\u672f\u6587\u7ae0\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8php%e7%bc%96%e5%86%99%e7%9a%84%e3%83%89%e3%83%89%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8php%e7%bc%96%e5%86%99%e7%9a%84%e3%83%89%e3%83%89%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8php%e7%bc%96%e5%86%99%e7%9a%84%e3%83%89%e3%83%89%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528PHP\u7f16\u5199\u7684\u30c9\u30c9\u30b9\u30b3\u30b9\u30b3\u30b9\u30b3\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c\",\"name\":\"\u6587, \u7fd4\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g\",\"caption\":\"\u6587, \u7fd4\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/wenxiang\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8php%e7%bc%96%e5%86%99%e7%9a%84%e3%83%89%e3%83%89%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528PHP\u7f16\u5199\u7684\u30c9\u30c9\u30b9\u30b3\u30b9\u30b3\u30b9\u30b3 - Blog - Silicon Cloud","description":"\u5173\u4e8e\u4f7f\u7528PHP\u7f16\u5199\u7684\u30c9\u30c9\u30b9\u30b3\u30b9\u30b3\u30b9\u30b3\u7684\u6280\u672f\u6587\u7ae0","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:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528php\u7f16\u5199\u7684\u30c9\u30c9\u30b9\u30b3\u30b9\u30b3\u30b9\u30b3\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528PHP\u7f16\u5199\u7684\u30c9\u30c9\u30b9\u30b3\u30b9\u30b3\u30b9\u30b3","og_description":"\u5173\u4e8e\u4f7f\u7528PHP\u7f16\u5199\u7684\u30c9\u30c9\u30b9\u30b3\u30b9\u30b3\u30b9\u30b3\u7684\u6280\u672f\u6587\u7ae0","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528php\u7f16\u5199\u7684\u30c9\u30c9\u30b9\u30b3\u30b9\u30b3\u30b9\u30b3\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-03-10T06:11:08+00:00","article_modified_time":"2025-08-12T13:14:40+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d09e737434c4406be2ff8\/6-0.png"}],"author":"\u6587, \u7fd4","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6587, \u7fd4","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8php%e7%bc%96%e5%86%99%e7%9a%84%e3%83%89%e3%83%89%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8php%e7%bc%96%e5%86%99%e7%9a%84%e3%83%89%e3%83%89%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3\/","name":"\u4f7f\u7528PHP\u7f16\u5199\u7684\u30c9\u30c9\u30b9\u30b3\u30b9\u30b3\u30b9\u30b3 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-03-10T06:11:08+00:00","dateModified":"2025-08-12T13:14:40+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c"},"description":"\u5173\u4e8e\u4f7f\u7528PHP\u7f16\u5199\u7684\u30c9\u30c9\u30b9\u30b3\u30b9\u30b3\u30b9\u30b3\u7684\u6280\u672f\u6587\u7ae0","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8php%e7%bc%96%e5%86%99%e7%9a%84%e3%83%89%e3%83%89%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8php%e7%bc%96%e5%86%99%e7%9a%84%e3%83%89%e3%83%89%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8php%e7%bc%96%e5%86%99%e7%9a%84%e3%83%89%e3%83%89%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528PHP\u7f16\u5199\u7684\u30c9\u30c9\u30b9\u30b3\u30b9\u30b3\u30b9\u30b3"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c","name":"\u6587, \u7fd4","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g","caption":"\u6587, \u7fd4"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/wenxiang\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8php%e7%bc%96%e5%86%99%e7%9a%84%e3%83%89%e3%83%89%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3%e3%82%b9%e3%82%b3\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/30887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=30887"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/30887\/revisions"}],"predecessor-version":[{"id":90695,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/30887\/revisions\/90695"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=30887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=30887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=30887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}