Home > Backend Development > PHP Tutorial > Singapore toto lottery results PHP Chinese simplified and traditional conversion code perfectly supports mainland China, Hong Kong, Taiwan and Singapore

Singapore toto lottery results PHP Chinese simplified and traditional conversion code perfectly supports mainland China, Hong Kong, Taiwan and Singapore

WBOY
Release: 2016-07-29 08:42:15
Original
4703 people have browsed it

Example: (Simplified> Traditional)Bread> Bread(zh-tw)Laos> Laos(zh-hk)China Life> China Life(zh-hk)Ronaldo> Ronaldo(zh-hk)( Traditional > Simplified) Memory > Memory (zh-cn) Bush > Bush (zh-cn) Database > Database (zh-cn) Usage
1. Download MediaWiki: (http://www. jb51.net/codes/25190.html), decompress in the path such as: /var/lib/mediawiki-1.13.3
2. Download mediawiki-zhconverter (the above file has been integrated), decompress and copy mediawiki-zhconverter.inc .php copied to your PHP program
3. Set the MediaWiki path in your program, and reference mediawiki-zhconverter
define("MEDIAWIKI_PATH", "/var/lib/mediawiki-1.14.0/");require_once "mediawiki -zhconverter.inc.php";4. Make the conversion
/* MediaWikiZhConverter::convert("word", "conversion target"); The optional values ​​for the conversion target are zh, zh-cn, zh-tw, zh-sg , zh-hk*/echo MediaWikiZhConverter::convert("bread", "zh-tw");echo MediaWikiZhConverter::convert("memory", "zh-cn");echo MediaWikiZhConverter::convert("Ronaldo" , "zh-hk");5. Complete
Supported versions
The following MediaWiki versions have been confirmed to be compatible with this program (http://download.wikimedia.org/mediawiki):
PHP4: 1.6.10, 1.6.11
PHP5 : 1.12.0, 1.13.3
Please use PHP5 version if not necessary.
Package download address http://xiazai.jb51.nethttp://www.jb51.net/codes/25190.html

The above introduces the Singapore toto lottery results PHP Chinese simplified and traditional conversion code, which perfectly supports mainland China, Hong Kong, Taiwan and Singapore, including the Singapore toto lottery results. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template