{"id":7375,"date":"2017-10-31T22:51:40","date_gmt":"2017-11-01T05:51:40","guid":{"rendered":"http:\/\/www.slyar.com\/blog\/?p=7375"},"modified":"2022-07-11T20:50:43","modified_gmt":"2022-07-12T03:50:43","slug":"php7-preg-replace-replace-ereg-replace","status":"publish","type":"post","link":"http:\/\/www.slyar.com\/blog\/php7-preg-replace-replace-ereg-replace.html","title":{"rendered":"PHP 7.x preg_replace\u66ff\u6362\u4e86ereg_replace\uff0cD8\u4e3b\u9898\u5d29\u574f"},"content":{"rendered":"<p>\u6587\u7ae0\u4f5c\u8005\uff1a<span style=\"color: #0000ff;\">\u59dc\u5357(Slyar) <\/span>\u6587\u7ae0\u6765\u6e90\uff1aSlyar Home (<a title=\"\u5927S\u535a\u5ba2\" href=\"http:\/\/www.slyar.com\" target=\"_blank\" rel=\"noopener\">www.slyar.com<\/a>) \u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff0c\u8c22\u8c22\u5408\u4f5c\u3002<\/p>\n<p>\u8bf4\u4ec0\u4e48\u597d\u5462\uff0c\u4e00\u4e2a\u4ed8\u8d39\u4e3b\u9898bug\u8fd9\u4e48\u591a\uff0c\u4f5c\u8005\u4e5f\u4e0d\u4fee\u6539\u3002PHP\u5347\u7ea7\u52307.x\u7248\u672c\u4ee5\u540e\u4e3b\u9898\u5c31\u5d29\u6e83\u4e86\uff0c\u770b\u4e86\u4e00\u773cerror log\u771f\u662f\u9c9c\u8840\u6dcb\u6f13<\/p>\n<pre class=\"wrap:true lang:sh decode:true \" >2017\/11\/01 04:46:39 [error] 14987#0: *38 FastCGI sent in stderr: \"PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function ereg_replace() in \/\u4e0d\u7ed9\u770b\/wp-content\/themes\/d8\/header.php:69<\/pre>\n<p>ereg_replace: This function was DEPRECATED in PHP 5.3.0, and REMOVED in PHP 7.0.0. (<a href=\"http:\/\/php.net\/manual\/en\/function.ereg-replace.php\" rel=\"noopener\" target=\"_blank\">\u4f20\u9001\u95e8<\/a>)<\/p>\n<p>ereg_replace() \u7684\u95ee\u9898\uff0c\u8fd9\u4e2a\u4e1c\u897f\u5728PHP 7.x\u4ee5\u540e\u5c31\u4e0d\u5b58\u5728\u4e86\u3002\u5339\u914d\u8bed\u6cd5\u4e5f\u4eceereg syntax (POSIX)\u6539\u6210\u4e86preg syntax (PCRE)\u3002\u4fee\u590d\u65b9\u6cd5\u4e5f\u5f88\u7b80\u5355\uff0c\u628a\u6240\u6709\u7684ereg_replace()\u548c\u5bf9\u5e94\u7684\u5339\u914d\u8868\u8fbe\u5f0f\u90fd\u6362\u6210preg_replace()\u6807\u51c6\u5c31\u597d\u4e86<\/p>\n<pre class=\"wrap:true lang:sh mark:1 decode:true \" >[root@slyar-gcp d8]# grep -nr \"ereg_replace(\\\"&lt;div\\[^&gt;\\]\\*&gt;&lt;ul\\[^&gt;\\]\\*&gt;\\\"\" .\/\r\n.\/pages\/tags.php:11:            &lt;?php echo str_replace(\"&lt;\/ul&gt;&lt;\/div&gt;\", \"\", ereg_replace(\"&lt;div[^&gt;]*&gt;&lt;ul[^&gt;]*&gt;\", \"\", wp_nav_menu(array('theme_location' =&gt; 'pagemenu', 'echo' =&gt; false)) )); ?&gt;\r\n.\/pages\/readers.php:22:         &lt;?php echo str_replace(\"&lt;\/ul&gt;&lt;\/div&gt;\", \"\", ereg_replace(\"&lt;div[^&gt;]*&gt;&lt;ul[^&gt;]*&gt;\", \"\", wp_nav_menu(array('theme_location' =&gt; 'pagemenu', 'echo' =&gt; false)) )); ?&gt;\r\n.\/pages\/tougao.php:11:          &lt;?php echo str_replace(\"&lt;\/ul&gt;&lt;\/div&gt;\", \"\", ereg_replace(\"&lt;div[^&gt;]*&gt;&lt;ul[^&gt;]*&gt;\", \"\", wp_nav_menu(array('theme_location' =&gt; 'pagemenu', 'echo' =&gt; false)) )); ?&gt;\r\n.\/pages\/page.php:12:            &lt;?php echo str_replace(\"&lt;\/ul&gt;&lt;\/div&gt;\", \"\", ereg_replace(\"&lt;div[^&gt;]*&gt;&lt;ul[^&gt;]*&gt;\", \"\", wp_nav_menu(array('theme_location' =&gt; 'pagemenu', 'echo' =&gt; false)) )); ?&gt;\r\n.\/pages\/archives.php:11:            &lt;?php echo str_replace(\"&lt;\/ul&gt;&lt;\/div&gt;\", \"\", ereg_replace(\"&lt;div[^&gt;]*&gt;&lt;ul[^&gt;]*&gt;\", \"\", wp_nav_menu(array('theme_location' =&gt; 'pagemenu', 'echo' =&gt; false)) )); ?&gt;\r\n.\/pages\/links.php:11:           &lt;?php echo str_replace(\"&lt;\/ul&gt;&lt;\/div&gt;\", \"\", ereg_replace(\"&lt;div[^&gt;]*&gt;&lt;ul[^&gt;]*&gt;\", \"\", wp_nav_menu(array('theme_location' =&gt; 'pagemenu', 'echo' =&gt; false)) )); ?&gt;\r\n.\/header.php:69:            &lt;?php echo str_replace(\"&lt;\/ul&gt;&lt;\/div&gt;\", \"\", ereg_replace(\"&lt;div[^&gt;]*&gt;&lt;ul[^&gt;]*&gt;\", \"\", wp_nav_menu(array('theme_location' =&gt; 'nav', 'echo' =&gt; false)) )); ?&gt;<\/pre>\n<p>\u4f5c\u8005\u6211\u771f\u662f\u3002\u3002\u3002\u670d\u4e86\u4f60\u4e86\uff0c\u4f60\u5199\u4e2a\u51fd\u6570\u91cd\u590d\u7528\u4f1a\u6b7b\u4e48\uff01\u4f1a\uff01\u6b7b\uff01\u4e48\uff01<\/p>\n<p>\u8bf7\u628a\u6240\u6709\u7684<\/p>\n<pre class=\"lang:default decode:true \" >ereg_replace(\"&lt;div[^&gt;]*&gt;&lt;ul[^&gt;]*&gt;\"<\/pre>\n<p>\u90fd\u66ff\u6362\u6210<\/p>\n<pre class=\"lang:default decode:true \" >preg_replace(\"\/&lt;div[^&gt;]*&gt;&lt;ul[^&gt;]*&gt;\/\"<\/pre>\n<p>\u5c31\u597d\u4e86\u3002\u3002\u3002<\/p>\n<p>(sed\u8868\u8fbe\u5f0f\u592a\u590d\u6742\u6211\u5c31\u4e0d\u5199\u4e86\uff0c\u53ea\u67097\u30018\u4e2a\u624b\u5de5\u6539\u4e86\u5c31\u884c\u4e86\uff0c\u8981\u662f\u6709\u51e0\u5341\u4e2a\u90a3\u5f97\u662f\u811a\u672c\u6539\uff0c\u9189\u4e86...)<\/p>\n<p>\u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1a<a href=\"http:\/\/www.slyar.com\/blog\">Slyar Home<\/a> &raquo; <a href=\"http:\/\/www.slyar.com\/blog\/php7-preg-replace-replace-ereg-replace.html\">PHP 7.x preg_replace\u66ff\u6362\u4e86ereg_replace\uff0cD8\u4e3b\u9898\u5d29\u574f<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u4f5c\u8005\uff1a\u59dc\u5357(Slyar) \u6587\u7ae0\u6765\u6e90\uff1aSlyar Home (www.slyar.com) \u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff0c\u8c22\u8c22\u5408\u4f5c\u3002 \u8bf4\u4ec0\u4e48\u597d\u5462\uff0c\u4e00\u4e2a\u4ed8\u8d39\u4e3b\u9898bug\u8fd9\u4e48\u591a\uff0c\u4f5c\u8005\u4e5f\u4e0d\u4fee\u6539\u3002PHP\u5347\u7ea7\u52307.x\u7248\u672c\u4ee5\u540e\u4e3b\u9898\u5c31\u5d29\u6e83\u4e86\uff0c\u770b\u4e86\u4e00\u773cerror log\u771f\u662f\u9c9c\u8840\u6dcb\u6f13  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":7379,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[979,1131,281],"class_list":["post-7375","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-computer","tag-php","tag-1131","tag-281"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Wordpress D8\u4e3b\u9898\u8bb8\u4e45\u672a\u66f4\u65b0\uff0cereg_replace\u51fd\u6570\u9020\u6210\u9875\u9762\u5d29\u6e83\u3002PHP message: PHP Fatal error: Uncaught Error: Call to undefined function ereg_replace()\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Slyar\"\/>\n\t<meta name=\"keywords\" content=\"slyar,\u535a\u5ba2,php,wordpress,ereg_replace,preg_replace,php 7.0,\u51fd\u6570,\u66ff\u6362,grep\" \/>\n\t<link rel=\"canonical\" href=\"http:\/\/www.slyar.com\/blog\/php7-preg-replace-replace-ereg-replace.html\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"zh_CN\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Slyar Home | \u8bb0\u5f55\u4e2a\u4eba\u751f\u6d3b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"PHP 7.x preg_replace\u66ff\u6362\u4e86ereg_replace\uff0cD8\u4e3b\u9898\u5d29\u574f - Slyar Home\" \/>\n\t\t<meta property=\"og:description\" content=\"Wordpress D8\u4e3b\u9898\u8bb8\u4e45\u672a\u66f4\u65b0\uff0cereg_replace\u51fd\u6570\u9020\u6210\u9875\u9762\u5d29\u6e83\u3002PHP message: PHP Fatal error: Uncaught Error: Call to undefined function ereg_replace()\" \/>\n\t\t<meta property=\"og:url\" content=\"http:\/\/www.slyar.com\/blog\/php7-preg-replace-replace-ereg-replace.html\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2017-11-01T05:51:40+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-07-12T03:50:43+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"PHP 7.x preg_replace\u66ff\u6362\u4e86ereg_replace\uff0cD8\u4e3b\u9898\u5d29\u574f - Slyar Home\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Wordpress D8\u4e3b\u9898\u8bb8\u4e45\u672a\u66f4\u65b0\uff0cereg_replace\u51fd\u6570\u9020\u6210\u9875\u9762\u5d29\u6e83\u3002PHP message: PHP Fatal error: Uncaught Error: Call to undefined function ereg_replace()\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/php7-preg-replace-replace-ereg-replace.html#article\",\"name\":\"PHP 7.x preg_replace\\u66ff\\u6362\\u4e86ereg_replace\\uff0cD8\\u4e3b\\u9898\\u5d29\\u574f - Slyar Home\",\"headline\":\"PHP 7.x preg_replace\\u66ff\\u6362\\u4e86ereg_replace\\uff0cD8\\u4e3b\\u9898\\u5d29\\u574f\",\"author\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar#author\"},\"publisher\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/10\\\/php-logo.png\",\"width\":272,\"height\":204},\"datePublished\":\"2017-10-31T22:51:40-07:00\",\"dateModified\":\"2022-07-11T20:50:43-07:00\",\"inLanguage\":\"zh-CN\",\"commentCount\":5,\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/php7-preg-replace-replace-ereg-replace.html#webpage\"},\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/php7-preg-replace-replace-ereg-replace.html#webpage\"},\"articleSection\":\"\\u7cfb\\u7edf\\u6280\\u5de7, php, \\u4e3b\\u9898, \\u535a\\u5ba2\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/php7-preg-replace-replace-ereg-replace.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/category\\\/computer#listItem\",\"name\":\"\\u7cfb\\u7edf\\u6280\\u5de7\"}},{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/category\\\/computer#listItem\",\"position\":2,\"name\":\"\\u7cfb\\u7edf\\u6280\\u5de7\",\"item\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/category\\\/computer\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/php7-preg-replace-replace-ereg-replace.html#listItem\",\"name\":\"PHP 7.x preg_replace\\u66ff\\u6362\\u4e86ereg_replace\\uff0cD8\\u4e3b\\u9898\\u5d29\\u574f\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/php7-preg-replace-replace-ereg-replace.html#listItem\",\"position\":3,\"name\":\"PHP 7.x preg_replace\\u66ff\\u6362\\u4e86ereg_replace\\uff0cD8\\u4e3b\\u9898\\u5d29\\u574f\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/category\\\/computer#listItem\",\"name\":\"\\u7cfb\\u7edf\\u6280\\u5de7\"}}]},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#person\",\"name\":\"Slyar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/php7-preg-replace-replace-ereg-replace.html#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid\",\"width\":96,\"height\":96,\"caption\":\"Slyar\"}},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar#author\",\"url\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar\",\"name\":\"Slyar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/php7-preg-replace-replace-ereg-replace.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid\",\"width\":96,\"height\":96,\"caption\":\"Slyar\"}},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/php7-preg-replace-replace-ereg-replace.html#webpage\",\"url\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/php7-preg-replace-replace-ereg-replace.html\",\"name\":\"PHP 7.x preg_replace\\u66ff\\u6362\\u4e86ereg_replace\\uff0cD8\\u4e3b\\u9898\\u5d29\\u574f - Slyar Home\",\"description\":\"Wordpress D8\\u4e3b\\u9898\\u8bb8\\u4e45\\u672a\\u66f4\\u65b0\\uff0cereg_replace\\u51fd\\u6570\\u9020\\u6210\\u9875\\u9762\\u5d29\\u6e83\\u3002PHP message: PHP Fatal error: Uncaught Error: Call to undefined function ereg_replace()\",\"inLanguage\":\"zh-CN\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/php7-preg-replace-replace-ereg-replace.html#breadcrumblist\"},\"author\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar#author\"},\"creator\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/10\\\/php-logo.png\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/php7-preg-replace-replace-ereg-replace.html\\\/#mainImage\",\"width\":272,\"height\":204},\"primaryImageOfPage\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/php7-preg-replace-replace-ereg-replace.html#mainImage\"},\"datePublished\":\"2017-10-31T22:51:40-07:00\",\"dateModified\":\"2022-07-11T20:50:43-07:00\"},{\"@type\":\"WebSite\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#website\",\"url\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/\",\"name\":\"Slyar Home\",\"description\":\"\\u8bb0\\u5f55\\u4e2a\\u4eba\\u751f\\u6d3b\",\"inLanguage\":\"zh-CN\",\"publisher\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"PHP 7.x preg_replace\u66ff\u6362\u4e86ereg_replace\uff0cD8\u4e3b\u9898\u5d29\u574f - Slyar Home","description":"Wordpress D8\u4e3b\u9898\u8bb8\u4e45\u672a\u66f4\u65b0\uff0cereg_replace\u51fd\u6570\u9020\u6210\u9875\u9762\u5d29\u6e83\u3002PHP message: PHP Fatal error: Uncaught Error: Call to undefined function ereg_replace()","canonical_url":"http:\/\/www.slyar.com\/blog\/php7-preg-replace-replace-ereg-replace.html","robots":"max-image-preview:large","keywords":"slyar,\u535a\u5ba2,php,wordpress,ereg_replace,preg_replace,php 7.0,\u51fd\u6570,\u66ff\u6362,grep","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.slyar.com\/blog\/php7-preg-replace-replace-ereg-replace.html#article","name":"PHP 7.x preg_replace\u66ff\u6362\u4e86ereg_replace\uff0cD8\u4e3b\u9898\u5d29\u574f - Slyar Home","headline":"PHP 7.x preg_replace\u66ff\u6362\u4e86ereg_replace\uff0cD8\u4e3b\u9898\u5d29\u574f","author":{"@id":"http:\/\/www.slyar.com\/blog\/author\/slyar#author"},"publisher":{"@id":"http:\/\/www.slyar.com\/blog\/#person"},"image":{"@type":"ImageObject","url":"http:\/\/www.slyar.com\/blog\/wp-content\/uploads\/2017\/10\/php-logo.png","width":272,"height":204},"datePublished":"2017-10-31T22:51:40-07:00","dateModified":"2022-07-11T20:50:43-07:00","inLanguage":"zh-CN","commentCount":5,"mainEntityOfPage":{"@id":"http:\/\/www.slyar.com\/blog\/php7-preg-replace-replace-ereg-replace.html#webpage"},"isPartOf":{"@id":"http:\/\/www.slyar.com\/blog\/php7-preg-replace-replace-ereg-replace.html#webpage"},"articleSection":"\u7cfb\u7edf\u6280\u5de7, php, \u4e3b\u9898, \u535a\u5ba2"},{"@type":"BreadcrumbList","@id":"http:\/\/www.slyar.com\/blog\/php7-preg-replace-replace-ereg-replace.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/#listItem","position":1,"name":"Home","item":"http:\/\/www.slyar.com\/blog\/","nextItem":{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/category\/computer#listItem","name":"\u7cfb\u7edf\u6280\u5de7"}},{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/category\/computer#listItem","position":2,"name":"\u7cfb\u7edf\u6280\u5de7","item":"http:\/\/www.slyar.com\/blog\/category\/computer","nextItem":{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/php7-preg-replace-replace-ereg-replace.html#listItem","name":"PHP 7.x preg_replace\u66ff\u6362\u4e86ereg_replace\uff0cD8\u4e3b\u9898\u5d29\u574f"},"previousItem":{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/php7-preg-replace-replace-ereg-replace.html#listItem","position":3,"name":"PHP 7.x preg_replace\u66ff\u6362\u4e86ereg_replace\uff0cD8\u4e3b\u9898\u5d29\u574f","previousItem":{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/category\/computer#listItem","name":"\u7cfb\u7edf\u6280\u5de7"}}]},{"@type":"Person","@id":"http:\/\/www.slyar.com\/blog\/#person","name":"Slyar","image":{"@type":"ImageObject","@id":"http:\/\/www.slyar.com\/blog\/php7-preg-replace-replace-ereg-replace.html#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid","width":96,"height":96,"caption":"Slyar"}},{"@type":"Person","@id":"http:\/\/www.slyar.com\/blog\/author\/slyar#author","url":"http:\/\/www.slyar.com\/blog\/author\/slyar","name":"Slyar","image":{"@type":"ImageObject","@id":"http:\/\/www.slyar.com\/blog\/php7-preg-replace-replace-ereg-replace.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid","width":96,"height":96,"caption":"Slyar"}},{"@type":"WebPage","@id":"http:\/\/www.slyar.com\/blog\/php7-preg-replace-replace-ereg-replace.html#webpage","url":"http:\/\/www.slyar.com\/blog\/php7-preg-replace-replace-ereg-replace.html","name":"PHP 7.x preg_replace\u66ff\u6362\u4e86ereg_replace\uff0cD8\u4e3b\u9898\u5d29\u574f - Slyar Home","description":"Wordpress D8\u4e3b\u9898\u8bb8\u4e45\u672a\u66f4\u65b0\uff0cereg_replace\u51fd\u6570\u9020\u6210\u9875\u9762\u5d29\u6e83\u3002PHP message: PHP Fatal error: Uncaught Error: Call to undefined function ereg_replace()","inLanguage":"zh-CN","isPartOf":{"@id":"http:\/\/www.slyar.com\/blog\/#website"},"breadcrumb":{"@id":"http:\/\/www.slyar.com\/blog\/php7-preg-replace-replace-ereg-replace.html#breadcrumblist"},"author":{"@id":"http:\/\/www.slyar.com\/blog\/author\/slyar#author"},"creator":{"@id":"http:\/\/www.slyar.com\/blog\/author\/slyar#author"},"image":{"@type":"ImageObject","url":"http:\/\/www.slyar.com\/blog\/wp-content\/uploads\/2017\/10\/php-logo.png","@id":"http:\/\/www.slyar.com\/blog\/php7-preg-replace-replace-ereg-replace.html\/#mainImage","width":272,"height":204},"primaryImageOfPage":{"@id":"http:\/\/www.slyar.com\/blog\/php7-preg-replace-replace-ereg-replace.html#mainImage"},"datePublished":"2017-10-31T22:51:40-07:00","dateModified":"2022-07-11T20:50:43-07:00"},{"@type":"WebSite","@id":"http:\/\/www.slyar.com\/blog\/#website","url":"http:\/\/www.slyar.com\/blog\/","name":"Slyar Home","description":"\u8bb0\u5f55\u4e2a\u4eba\u751f\u6d3b","inLanguage":"zh-CN","publisher":{"@id":"http:\/\/www.slyar.com\/blog\/#person"}}]},"og:locale":"zh_CN","og:site_name":"Slyar Home | \u8bb0\u5f55\u4e2a\u4eba\u751f\u6d3b","og:type":"article","og:title":"PHP 7.x preg_replace\u66ff\u6362\u4e86ereg_replace\uff0cD8\u4e3b\u9898\u5d29\u574f - Slyar Home","og:description":"Wordpress D8\u4e3b\u9898\u8bb8\u4e45\u672a\u66f4\u65b0\uff0cereg_replace\u51fd\u6570\u9020\u6210\u9875\u9762\u5d29\u6e83\u3002PHP message: PHP Fatal error: Uncaught Error: Call to undefined function ereg_replace()","og:url":"http:\/\/www.slyar.com\/blog\/php7-preg-replace-replace-ereg-replace.html","article:published_time":"2017-11-01T05:51:40+00:00","article:modified_time":"2022-07-12T03:50:43+00:00","twitter:card":"summary","twitter:title":"PHP 7.x preg_replace\u66ff\u6362\u4e86ereg_replace\uff0cD8\u4e3b\u9898\u5d29\u574f - Slyar Home","twitter:description":"Wordpress D8\u4e3b\u9898\u8bb8\u4e45\u672a\u66f4\u65b0\uff0cereg_replace\u51fd\u6570\u9020\u6210\u9875\u9762\u5d29\u6e83\u3002PHP message: PHP Fatal error: Uncaught Error: Call to undefined function ereg_replace()"},"aioseo_meta_data":{"post_id":"7375","title":"PHP 7.x preg_replace\u66ff\u6362\u4e86ereg_replace\uff0cD8\u4e3b\u9898\u5d29\u574f - #site_title","description":"Wordpress D8\u4e3b\u9898\u8bb8\u4e45\u672a\u66f4\u65b0\uff0cereg_replace\u51fd\u6570\u9020\u6210\u9875\u9762\u5d29\u6e83\u3002PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function ereg_replace()","keywords":[{"label":"slyar","value":"slyar"},{"label":"\u535a\u5ba2","value":"\u535a\u5ba2"},{"label":"php","value":"php"},{"label":"wordpress","value":"wordpress"},{"label":"ereg_replace","value":"ereg_replace"},{"label":"preg_replace","value":"preg_replace"},{"label":"php 7.0","value":"php 7.0"},{"label":"\u51fd\u6570","value":"\u51fd\u6570"},{"label":"\u66ff\u6362","value":"\u66ff\u6362"},{"label":"grep","value":"grep"}],"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-02-10 02:44:07","updated":"2022-10-18 12:59:20","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"_links":{"self":[{"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/posts\/7375","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/comments?post=7375"}],"version-history":[{"count":1,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/posts\/7375\/revisions"}],"predecessor-version":[{"id":8615,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/posts\/7375\/revisions\/8615"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/media\/7379"}],"wp:attachment":[{"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/media?parent=7375"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/categories?post=7375"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/tags?post=7375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}