Home >Backend Development >PHP Tutorial >php版随意进制转换

php版随意进制转换

WBOY
WBOYOriginal
2016-06-13 12:15:061138browse

php版任意进制转换

<pre name="code" class="html">$int=36;$str=array();$flag=0;//echo chr($int%36+87);while($int!=0){	if($int%36=0;$i-=1)if($str[$i]!=0)break;//这个地方输出还有点瑕疵 希望大神指点(当$int=360时不输出)for(;$i>=0;$i-=1)echo $str[$i];//echo $str;?>



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