Share a php-made Chinese pinyin first letter tool class,
The code is very simple, here is not many BB, we read the comments, comments do not understand the small partner, beg to leave php!!!
Copy CodeThe code is as follows:/*** Chinese Pinyin first
Welcome to the Linux community forum and interact with 2 million technical staff. Use php to get the first letter of Chinese Character and pinyin, for example, get the first letter of Z from the self-learning network. The Code is as follows :?
Click to download: To get the words before the first, two or three Chinese characters Sequencer Template: Get the template of Chinese character sequencer. et Preview the Template: in the daily work process, we often need to get the first
To get the first letter of the method there are many, this we generally want to divide the Chinese characters and then converted to pinyin, and then use SUBSTR to take the first letter, below I found online two instances, different people together
The EL expression Gets the object property in the same way: the expression ${user.name} is an example of an El expression that finds the Get method of the name in the user class based on name, and automatically capitalizes the name and the get
Preview the Template:
In the daily work process, we often need to get the first letter of Chinese characters, for example, students use Sequencer search Word dictionary, the hospital set up a drug inquiry system, KTV set up song query
Preview the Template: In the daily work process, we often need to get the first letter of Chinese characters, for example, the students use the Sequencer dictionary search word, the hospital set up a drug inquiry system,KTVset up a song query
Q: for pinyin and Pinyin first letter support, when you search for goods, if you want to enter the pinyin and pinyin first letter to give the product information, how to do?There are 2 ways to implement them, but they are in fact corresponding.
This article mainly introduces a piece of PHP-made Chinese Pinyin initials tool code, which is very practical and recommended to kids shoes with the same requirements. The code is very simple. there will be no more code here. let's take a look at
Php/** * Chinese Pinyin First Letter tool class * Note: English strings: Unchanged returns (including numbers) eg. abc123 = abc123* Chinese string: Returns the phonetic first character eg. test string = cszfc* Chinese-English mixed string: Returns
This article mainly introduces a piece of PHP-made Chinese Pinyin initials tool code, which is very practical and recommended to kids shoes with the same requirements. The code is very simple. there will be no more code here. let's take a look at
How does php + mysql Query The Chinese character database based on the first letter of the pinyin alphabet? How does php + mysql Query The Chinese character database based on the first letter of the pinyin alphabet?
For example, search for lah,
We can use a Chinese character encoding to determine the first Chinese character in Chinese characters. The following is an example, which is very simple and easy to use. Let's take a look at how to get the first letter of a single Chinese character.
In the quick scrolling example of listview, the first letter prompt is added to implement the listview slide and first letter prompt function. However, there are still some problems in practical application. for example, if you switch from another
Use Vbscript to obtain the first letter of each Chinese character. The script is as follows:
'The current model dim mdlset MDL = activemodelif (MDL is nothing) thenmsgbox 'does not have an activity model! "Elselistobjects (MDL) end if 'lists all
This article mainly introduces how to obtain the first letter of Chinese characters and pinyin in php. For more information, see the instructions in the real world. The rankings are sorted by the first letter. This is the sorting method most people
How does mysql use the first letter of an English word groupby ??? There is a field & nbsp; the content is in English. how do I use the group & nbsp; by field as the first letter of an English word ?? No clue. thank you! ------ Solution -------------
Php is used to obtain the first letter of Chinese characters and pinyin. The code for php to copy the first letter of Chinese character Pinyin is as follows :? Phpfunctiongetinitial ($ str) {$ ascord (substr ($ str, 0, 1); if ($ asc160) non-Chinese {
This article mainly introduces how to obtain the first letter of Chinese characters and pinyin in php. For more information, see the instructions in the real world. The rankings are sorted by the first letter. This is the sorting method most people
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.