{"id":728,"date":"2020-11-27T15:11:02","date_gmt":"2020-11-27T07:11:02","guid":{"rendered":"https:\/\/www.cxybj.com\/?p=728"},"modified":"2020-11-27T15:11:02","modified_gmt":"2020-11-27T07:11:02","slug":"php-%e6%89%b9%e9%87%8f%e6%b8%85%e9%99%a4%e7%89%b9%e6%ae%8a%e7%ac%a6%e5%8f%b7%e8%87%aa%e5%ae%9a%e4%b9%89%e5%87%bd%e6%95%b0function","status":"publish","type":"post","link":"https:\/\/www.cxybj.com\/?p=728","title":{"rendered":"php \u6279\u91cf\u6e05\u9664\u7279\u6b8a\u7b26\u53f7\u81ea\u5b9a\u4e49\u51fd\u6570function"},"content":{"rendered":"<pre>public function strFilter($str){\r\n    $str = str_replace('`', '', $str);\r\n    $str = str_replace('\u00b7', '', $str);\r\n    $str = str_replace('~', '', $str);\r\n    $str = str_replace('!', '', $str);\r\n    $str = str_replace('\uff01', '', $str);\r\n    $str = str_replace('@', '', $str);\r\n    $str = str_replace('#', '', $str);\r\n    $str = str_replace('$', '', $str);\r\n    $str = str_replace('\uffe5', '', $str);\r\n    $str = str_replace('%', '', $str);\r\n    $str = str_replace('^', '', $str);\r\n    $str = str_replace('\u2026\u2026', '', $str);\r\n    $str = str_replace('&amp;', '', $str);\r\n    $str = str_replace('*', '', $str);\r\n    $str = str_replace('(', '', $str);\r\n    $str = str_replace(')', '', $str);\r\n    $str = str_replace('\uff08', '', $str);\r\n    $str = str_replace('\uff09', '', $str);\r\n    $str = str_replace('-', '', $str);\r\n    $str = str_replace('_', '', $str);\r\n    $str = str_replace('\u2014\u2014', '', $str);\r\n    $str = str_replace('+', '', $str);\r\n    $str = str_replace('=', '', $str);\r\n    $str = str_replace('|', '', $str);\r\n    $str = str_replace('\\\\', '', $str);\r\n    $str = str_replace('[', '', $str);\r\n    $str = str_replace(']', '', $str);\r\n    $str = str_replace('\u3010', '', $str);\r\n    $str = str_replace('\u3011', '', $str);\r\n    $str = str_replace('{', '', $str);\r\n    $str = str_replace('}', '', $str);\r\n    $str = str_replace(';', '', $str);\r\n    $str = str_replace('\uff1b', '', $str);\r\n    $str = str_replace(':', '', $str);\r\n    $str = str_replace('\uff1a', '', $str);\r\n    $str = str_replace('\\'', '', $str);\r\n    $str = str_replace('\"', '', $str);\r\n    $str = str_replace('\u201c', '', $str);\r\n    $str = str_replace('\u201d', '', $str);\r\n    $str = str_replace(',', '', $str);\r\n    $str = str_replace('\uff0c', '', $str);\r\n    $str = str_replace('&lt;', '', $str);\r\n    $str = str_replace('&gt;', '', $str);\r\n    $str = str_replace('\u300a', '', $str);\r\n    $str = str_replace('\u300b', '', $str);\r\n    $str = str_replace('.', '', $str);\r\n    $str = str_replace('\u3002', '', $str);\r\n    $str = str_replace('\/', '', $str);\r\n    $str = str_replace('\u3001', '', $str);\r\n    $str = str_replace('?', '', $str);\r\n    $str = str_replace('\uff1f', '', $str);\r\n    return trim($str);\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>public function strFilter($str &hellip; <a href=\"https:\/\/www.cxybj.com\/?p=728\" class=\"more-link\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/www.cxybj.com\/index.php?rest_route=\/wp\/v2\/posts\/728"}],"collection":[{"href":"https:\/\/www.cxybj.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cxybj.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cxybj.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cxybj.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=728"}],"version-history":[{"count":1,"href":"https:\/\/www.cxybj.com\/index.php?rest_route=\/wp\/v2\/posts\/728\/revisions"}],"predecessor-version":[{"id":729,"href":"https:\/\/www.cxybj.com\/index.php?rest_route=\/wp\/v2\/posts\/728\/revisions\/729"}],"wp:attachment":[{"href":"https:\/\/www.cxybj.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cxybj.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=728"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cxybj.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}