【PHP】汉字转拼音通用版

2014-01-25  45591阅

<?php
class PY{
/**
*@param $$_String 汉字
* @param $$_Code 编码方式,默认gb2312,设置为其他任意字符则为utf8编码
* 试用方法 Pinyin(‘如果是UTF8第二个参数随便写‘,1);
*/
static public function Pinyin($$_String, $$_Code=‘gb2312‘) {
$$_DataKey =
“a|ai|an|ang|ao|ba|bai|ban|bang|bao|bei|ben|beng|bi|bian|biao|bie|bin|bing|bo|bu|ca|cai|can|cang|cao|ce|ceng|cha“.
“|chai|chan|chang|chao|che|chen|cheng|chi|chong|chou|chu|chuai|chuan|chuang|chui|chun|chuo|ci|cong|cou|cu|“.
“cuan|cui|cun|cuo|da|dai|dan|dang|dao|de|deng|di|dian|diao|die|ding|diu|dong|dou|du|duan|dui|dun|duo|e|en|er“.
“|fa|fan|fang|fei|fen|feng|fo|fou|fu|ga|gai|gan|gang|gao|ge|gei|gen|geng|gong|gou|gu|gua|guai|guan|guang|gui“.
“|gun|guo|ha|hai|han|hang|hao|he|hei|hen|heng|hong|hou|hu|hua|huai|huan|huang|hui|hun|huo|ji|jia|jian|jiang“.
“|jiao|jie|jin|jing|jiong|jiu|ju|juan|jue|jun|ka|kai|kan|kang|kao|ke|ken|keng|kong|kou
下页    上页    全部    余下    
 

发表评论

文明评论,重在参与

116楼 游客05283:
<a href="http://blandfordandsturhockey.co.uk/2015/06/22/mac-makeup-store-canada-cheap-for-atjxh-774/">mac makeup store canada Cheap For ATJXH 774 Blandford & Sturminster Hockey Club</a> <a href="http://thehamptonmassage.com/wholesale-mac-makeup-brush-kit-prices-q9xoz2hlgu/">Westhampton</a> <a href="http://fshbhm.org/mac-lipstick-myth-wh5xwov9wi/">mac lipstick myth-Wh5xwOv9wi</a> <a href="http://escalared.com/archives/1532">escala netlabel audio-visual platform 禄 memory mac pro-1a5yPPMuCT</a> <a href="http://eggheadzcafe.com/?p=291">mac brushes set review-RsBBiV8fsC Egg HeadZ Cafe</a> <a href="http://www.scarlett-angel.co.uk/wholesale-brush-kits-mac-yxxfagf76e/">wholesale brush kits mac-YXXFAGF76E Scarlett-Angel</a>
[ *=http://www.simpsontappedouthacktool.com/mac-strobe-cream-3kyribknxh/]Simpson Tapped Out Hack Tool[/*]07-22 08:51
115楼 游客05026:
<a href="http://cftvp.gob.ar/15625/are-mac-makeup-artists-good-strong-resistance-to-heat-and-hard-wearing-sdafd-114/">are mac makeup artists good Strong Resistance To Heat And Hard Wearing SDAFD 114 Consejo Federal de la Televisi贸n P煤blica</a> <a href="http://mhalaw.co.za/best-mac-mascara-for-volume-upduuzn0pr/">best mac mascara for volume-uPDUuzN0Pr Mkhabela Huntley Adekeye - Attorneys</a> <a href="http://waterhousefeeds.co.uk/wholesale-best-mac-makeup-full-coverage-lurpitnysq/">wholesale best mac makeup full coverage-LURPiTNYSq Waterhouse Feeds</a> <a href="http://kemalsunalfilmleri.info/mac-red-she-said-lipstick-dy2t8i8dul">mac red she said lipstick-Dy2T8i8DuL - Kemal Sunal Film</a> <a href="http://mhalaw.co.za/wholesale-mac-lipglass-oyster-girl-9gbujfgn4b/">wholesale mac lipglass oyster girl-9GBuJfgN4b Mkhabela Huntley Adekeye - Attorneys</a> <a href="http://triamediawp.nl/?p=195">ruby roo mac lipstick-w3D72UhnrK Vaalser Huizenservice</a>
[ *=http://katherineimport.com/?p=13206]mac set powder-Q3gTouEoOO[/*]07-22 08:51
114楼 游客54518:
http://beatss.seesaa.net/article/422670819.html?1437354935sitemap
[ *=http://shixiong1q.is-programmer.com/posts/111518.html]sitemap[/*]07-21 08:06
113楼 游客81951:
<a href="http://midwestleasing.net/mac-cosmetics-price-lastest-with-good-quality-and-cheap-price-yjegy-272">mac cosmetics price Lastest With Good Quality And Cheap Price YJEGY 272 Midwest Leasing</a> <a href="http://ballandchainuk.com/2015/06/mac-sexy-lipstick-mgjcyv7lsn/">mac sexy lipstick-MgJcyv7lSN Ball and Chain Bournemouth</a> <a href="http://cftvp.gob.ar/15701/mac-matte-lipstick-smoked-purple-qqpfreku8p/">mac matte lipstick smoked purple-QqPFReku8P Consejo Federal de la Televisi贸n P煤blica</a> <a href="http://milan54.org/wholesale-mac-studio-fix-shade-guide-xfbpdw6z0p/">Milan 1954 Hoosiers Museum </a> <a href="http://sata-allergia.fi/mac-sin-lipstick-gnc0d2lhtz/">mac sin lipstick-GnC0D2lhtZ Satakunnan Allergia- ja Astmayhdistys ry Satakunnan Allergia- ja Astmayhdistys ry mac sin lipstick-GnC0D2lhtZ Satakunnan Allergia- ja Astmayhdistys ry |</a> <a href="http://www.vitacrown.biz/wholesale-mac-dark-brown-eyeshadow-e3vd9jitrx.html">wholesale mac dark brown eyeshadow-e3vD9Jitrx Vita Crown Fashion</a>
[ *=http://tamikataylormusic.com/wholesale-mac-cosmetics-for-sale-wnvr5fjve3/]wholesale mac cosmetics for sale-Wnvr5fJve3 - Tamika Taylor[/*]07-21 03:08
112楼 游客81786:
<a href="http://fullercraft.org/the-best-mac-mascara-high-quality-and-low-price-no-tax-fast-delivery-ohc4g-919/">the best mac mascara High Quality And Low Price. No Tax .Fast Delivery! OHC4G 919 Fuller Craft Museum</a> <a href="http://atelierconceptantique.com/wholesale-mac-match*-orazppgrxl/">wholesale mac match*-ORaZpPgrXl Atelier Concept Antique</a> <a href="http://www.stansfitclub.com/mac-lipstick-st-germain-i5vmahjcqa/">mac lipstick st germain-i5vMahjcQa 芦 Stans Fit Club</a> <a href="http://larimorewrestling.com/archives/564">wholesale mac cosmetics where to buy-z9pRZJwFN0 Polar Bear Wrestling</a> <a href="http://www.bove-nl.nl/geen-categorie/wholesale-mac-sculpting-brush-enfjrdd4yx/">wholesale mac sculpting brush-enfJrdd4Yx - Bov茅 Draadproducten BV</a> <a href="http://www.chinarosecuisine.com/wholesale-purple-mac-eyeshadow-4mg0glreto/">wholesale purple mac eyeshadow-4Mg0GlReTo ChinaRoseCuisine</a>
[ *=http://steffenpeddie.com/mac-studio-nail-lacquer-we%ef%bf%bd%ef%bf%bdre-out-to-shatter-the-competition-s0ixs-532/]mac studio nail lacquer We��re Out to Shatter the Competition S0IXS 532 • Steffen Peddie: Stand Up Comedian: Official Page[/*]07-21 03:08
最新文章
你真的需要智能手环么? 09-01
微信真能给微信读书带来巨大红利 09-01
网络文化不过是新生代心理活动投 09-01
左手微票右手时光,万达在下一步 09-01
在知乎,如何写一个烂答案? 09-01
单机游戏的未来:VR技术或将助 09-01
宗宁:史上最无情广告法终结传统 09-01
iPhone 还是 Andro 09-01
互联网让偷情变得越来越容易了吗 09-01
“跑分”大潮退去 谁在裸泳? 09-01
返回PHP教程-返回首页
2009-2018 版权所有 1159.com.cn pc