日期:2014-05-17  浏览次数:20477 次

php字符串转换问题
$num="";
for($i=0;$i<4;$i++){
$num .= dechex(rand(0,15));
}


以上代码,dechex(rand(0,15)),应该得到的是数字?但是却$num .  
这怎么理解。。

------解决方案--------------------
dechex的返回值是一个字符串呀