PHP 经常使用的工具方法

1.php产生指定长度的字符串。 php /** * @param $codeLen 随机字符串长度 * @return string 随机字符串 */ function randStr($codeLen){ $str="abcdefghijkmnpqrstuvwxyz0123456789"; $rand=""; for($i=0; $i<$codeLen-1; $
相关文章
相关标签/搜索