Home >Backend Development >PHP Tutorial >php 根据姓氏笔画排序如何做

php 根据姓氏笔画排序如何做

WBOY
WBOYOriginal
2016-06-13 12:04:291714browse

php 根据姓氏笔画排序怎么做
php 根据姓氏笔画排序怎么做
mysql数据库
有高手作过么
------解决方案--------------------
获取汉字笔画数的一种方法

$fp = fopen('汉字.xls', 'w');<br />for($c=0x4E00; $c<=0x9fa5; $c++) {<br />  fputs($fp, iconv('ucs-2', 'gbk', pack('n', $c)) . PHP_EOL);<br />}<br />fclose($fp);<br />

打开《汉字.xls》 菜单 -- 数据 -- 排序 -- 笔画排序

自己动手填上笔画数

Statement:
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