{"id":191,"date":"2007-09-22T01:15:11","date_gmt":"2007-09-21T17:15:11","guid":{"rendered":"http:\/\/j178.mtgbb.com\/148"},"modified":"2007-09-22T01:15:11","modified_gmt":"2007-09-21T17:15:11","slug":"utf-8%e7%b7%a8%e7%a2%bc%e6%99%82%e6%93%b7%e5%8f%96%e5%ad%97%e4%b8%b2%e5%92%8c%e8%a8%88%e7%ae%97%e9%95%b7%e5%ba%a6%e7%9a%84%e5%87%bd%e6%95%b8","status":"publish","type":"post","link":"https:\/\/j178.mtgbb.com\/?p=191","title":{"rendered":"UTF-8\u7de8\u78bc\u6642\u64f7\u53d6\u5b57\u4e32\u548c\u8a08\u7b97\u9577\u5ea6\u7684\u51fd\u6578"},"content":{"rendered":"<p>\u8cc7\u6599\u8f49\u8cbc\u81ea: <a href=\"http:\/\/hi.baidu.com\/lukin\/blog\/item\/1bee77f084c47faca50f52a2.html\">Lukin zone<\/a><\/p>\n<p>\u6539\u5beb\u8a0e\u8ad6\u5340\u7a0b\u5f0f\u6642\u525b\u597d\u9700\u8981\u7528\u5230<\/p>\n<p><!--more--><\/p>\n<pre lang=\"php\" line=\"1\">\n< ?php\n\/\/ \u652f\u63f4\u4e2d\u6587\u7684 substr(string,length[,start])\nfunction cnsubstr($l1,$l2,$l3=0)\n{\n$I2 = \"\/[x01-x7f]|[xc2-xdf][x80-xbf]|xe0[xa0-xbf][x80-xbf]|[xe1-xef][x80-xbf][x80-xbf]|xf0[x90-xbf][x80-xbf][x80-xbf]|[xf1-xf7][x80-xbf][x80-xbf][x80-xbf]\/\";\npreg_match_all($I2,$l1,$I3);\nif (count($I3[0]) - $l3 > $l2) {\nreturn implode('',array_slice($I3[0],$l3,$l2)).\"...\";\n}\nreturn implode('',array_slice($I3[0],$l3,$l2));\n}\n\n\/\/ \u8a08\u7b97\u4e2d\u6587\u5b57\u4e32\u9577\u5ea6\nfunction len($l1)\n{\n$I2 = \"\/[x01-x7f]|[xc2-xdf][x80-xbf]|xe0[xa0-xbf][x80-xbf]|[xe1-xef][x80-xbf][x80-xbf]|xf0[x90-xbf][x80-xbf][x80-xbf]|[xf1-xf7][x80-xbf][x80-xbf][x80-xbf]\/\";\npreg_match_all($I2,$l1,$I3);\nreturn count($I3[0]);\n}\n?> \n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u8cc7\u6599\u8f49\u8cbc\u81ea: Lukin zone \u6539\u5beb\u8a0e\u8ad6\u5340\u7a0b\u5f0f\u6642\u525b\u597d\u9700\u8981\u7528\u5230<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[56],"class_list":["post-191","post","type-post","status-publish","format-standard","hentry","category-php","tag-php"],"_links":{"self":[{"href":"https:\/\/j178.mtgbb.com\/index.php?rest_route=\/wp\/v2\/posts\/191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/j178.mtgbb.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/j178.mtgbb.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/j178.mtgbb.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/j178.mtgbb.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=191"}],"version-history":[{"count":0,"href":"https:\/\/j178.mtgbb.com\/index.php?rest_route=\/wp\/v2\/posts\/191\/revisions"}],"wp:attachment":[{"href":"https:\/\/j178.mtgbb.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/j178.mtgbb.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/j178.mtgbb.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}