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

php版随意进制转换

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 12:15:06
Original
1163 people have browsed it

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;?>
Copy after login


Copy after login

Related labels:
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template