php字符串转换问题
$num=””;
for($i=0;$i<4;$i++){
$num .= dechex(rand(0,15));
}
以上代码,dechex(rand(0,15)),应该得到的是数字?但是却$num .
这怎么理解。。
——解决方案——————–
dechex的返回值是来&源gao@dai!ma.com搞$代^码%网搞gaodaima代码一个字符串呀
php字符串转换问题
$num=””;
for($i=0;$i<4;$i++){
$num .= dechex(rand(0,15));
}
以上代码,dechex(rand(0,15)),应该得到的是数字?但是却$num .
这怎么理解。。
——解决方案——————–
dechex的返回值是来&源gao@dai!ma.com搞$代^码%网搞gaodaima代码一个字符串呀