A search on the internet, everywhere is "php to pinyin", but the code only supports GB2312,Even "Qian", "Mo", "Hui" and other words are not supported.For Chinese names to pinyin, that code is far from enough to use. Now publish a correct GBK pinyin
/**
* isset-detection variables are set
* Returns TRUE if the variable exists, otherwise false
*
* empty-Check if a variable is empty
* If the variable is a non-null or nonzero value, empty () returns false
**/
Jpge pictures and PNG image fusion, in fact, we are familiar with the watermark technology. The most important sentence in the following code is: To set the color blending mode of an imageImagealphablending ($ground _im, true);
/
traverse all directories and files under the specified directory
!--? php
function List_dir ($dir) {
static $result = Array ();
if (Is_dir ($dir)) {
$file _dir = Scandir ($dir)
phpcms2008 Add browse times PluginIncrease the number of browse times for a specified article, increasing the number of articles in a given rangeIncrease the number of views for the specified column articleIncrease the activity of the company,
GGARCIAA at gmail dot com (04-july-2007 01:57)
I needed to empty a directory, but keeping it
So I slightly modified the contribution from
Stefano at takys Dot it (28-dec-2005 11:57)
A Short but powerfull recursive function
The company is building a large-scale industry to share the theme of the trade platform, to find understanding of web platform development, familiar with PHP, MySQL, JAVA, Android, IOS, can independently complete the site architecture and
1, the theme folder used in the Wp-content/themes/folder
There are-----functions.php in the theme (the main function of the theme is in this), add the following code to this file:
Register_nav_menus (Array (' Header-menu ' + __ ('
Sometimes HTML files are encoded in a different way than the ones specified in Meta information, and can be done with this code. This program relies on Jsoup and Commons-io packages
Import Java.io.File;
Import Java.io.FileWriter;
$str = ' Hello world! ';
echo strlen ($STR); Output 12
?>
Copy CodeHowever, in PHP's own function, strlen and Mb_strlen are calculated by calculating the number of bytes in the string, and the number of bytes in
/**
* Returns a unique string that is unique in the local system.
* Returns a 32-character string in the form of ' 7dac352074f221f3edc74d265c65a636 ', or ' D198D8FC56FFED627F3F8313D6F06ACF '
*/
function LUID () {
Return
Search from the Internet, read the file, change the key value of the method.
Package com.sdut.edu.tools;
Import Java.io.BufferedReader;
Import Java.io.BufferedWriter;
Import Java.io.FileReader;
Import Java.io.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service