工匠之家
常用函数
06-03-30 (星期四)

这是一些使用频率比较高的函数,有的来自别人的程序...... 1.产生随机字符串函数 function random($length) { $hash = @#@#; $chars = @#ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz@#; $max = strlen($chars) - 1; mt_srand((double)microtime() * 1000000); for($i = 0; $i < $length; $i++) { $hash .= $chars[mt_rand(0, $max)]; } return $hash; } 2.截取一定长度的字符串 注:该函数对GB2312使用有效 function wordscut($string, $length ,$sss=0) { if(strlen($string) > $length) ...

2006年03月号
人气 回复 引用 主题/摘要 最后发表
61903 4 0 常用函数 这是一些使用频率比较高的函数,有的来自别人的程序...... 1.. 09-07-27 17:50
cialis kaufen online
2114 30 0 根据页面文件名取ID $path1=substr($HTTP_SERVER_VARS["SCRIPT_FILENAME&quo.. 10-06-10 15:53
RxPtLEMjmJMfG
779 28 0 IP 判断 if(getenv('HTTP_CLIENT_IP')) { $onlineip = getenv('HTTP_C.. 09-09-30 01:11
name
30560 485 0 表单验证 表单的验证一直是网页设计者头痛的问题,表单验证类 V.. 10-07-22 05:25
zyrri1985
75048 4478 0 mysql liunx下操作 一、找到mysql目录 cd /usr/local/mysql/bin/ 二、显示所有.. 10-07-22 10:57
ashlinnraw

文章归档
2006:  三月

文章分类
一般分类 (0)


mysql (1)
mysql 操作

asp (0)
asp

php (3)
php

sqlserver (0)
sqlserver

jsp (0)
jsp

javascript (1)
javascript

.net (0)
.net

« 一月 2012 »
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          


Creative Commons License 本站全部著作均采用CC授权. Plog 1.0 is powered by: plogworld.net.
Itpub BLOG is provided by: itpub.net.
This temlate(named Happy-Life's SunShine) is designed by lodge@itpub(肥猫猫).