PHP 中文简繁互转代码 完美支持大陆、香港、台湾及新加坡_php技巧
例子:(简 > 繁)面包 > 麵包 (zh-tw)寮国 > 老撾 (zh-hk)中国人寿 > 中國人壽 (zh-hk)罗纳尔多 > 朗拿度 (zh-hk)(繁 > 簡)記憶體 > 内存 (zh-cn)布殊 > 布什 (zh-cn)資料庫 > 数据库(zh-cn)使用方法
1. 下载 MediaWiki: (http://www.jb51.net/codes/25190.html),解压在路径如:/var/lib/mediawiki-1.13.3
2. 下载 mediawiki-zhconverter(上面的文件已经集成了),解压及把 mediawiki-zhconverter.inc.php 复制到你 PHP 程序中
3. 在你的程序中设置 MediaWiki 路径, 及引用 mediawiki-zhconverter
define("MEDIAWIKI_PATH", "/var/lib/mediawiki-1.14.0/");require_once "mediawiki-zhconverter.inc.php";4. 作出转换
/* MediaWikiZhConverter::convert( "字词", "转换目标"); 转换目标可选值为 zh, zh-cn, zh-tw, zh-sg, zh-hk*/echo MediaWikiZhConverter::convert("面包", "zh-tw");echo MediaWikiZhConverter::convert("記憶體", "zh-cn");echo MediaWikiZhConverter::convert("罗纳尔多", "zh-hk");5. 完成
支持版本
下列MediaWiki 版本已证实可以兼容本程式 (http://download.wikimedia.org/mediawiki):
PHP4: 1.6.10, 1.6.11
PHP5: 1.12.0, 1.13.3
如非必要,请使用 PHP5 版本。
打包下载地址http://xiazai.jb51.nethttp://www.jb51.net/codes/25190.html

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



In this chapter, we will understand the Environment Variables, General Configuration, Database Configuration and Email Configuration in CakePHP.

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

To work with date and time in cakephp4, we are going to make use of the available FrozenTime class.

To work on file upload we are going to use the form helper. Here, is an example for file upload.

In this chapter, we are going to learn the following topics related to routing ?

CakePHP is an open-source framework for PHP. It is intended to make developing, deploying and maintaining applications much easier. CakePHP is based on a MVC-like architecture that is both powerful and easy to grasp. Models, Views, and Controllers gu

Working with database in CakePHP is very easy. We will understand the CRUD (Create, Read, Update, Delete) operations in this chapter.

Validator can be created by adding the following two lines in the controller.
