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

php版随意进制转换

Jun 13, 2016 pm 12:15 PM
flag int quot str

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&gt;=0;$i-=1)echo $str[$i];//echo $str;?&gt;
Copy after login


Copy after login

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

Hot Article

Hot Article

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

C++ program to convert double type variable to int type C++ program to convert double type variable to int type Aug 25, 2023 pm 08:25 PM

C++ program to convert double type variable to int type

Detailed explanation of the method of converting int type to bytes in PHP Detailed explanation of the method of converting int type to bytes in PHP Mar 06, 2024 pm 06:18 PM

Detailed explanation of the method of converting int type to bytes in PHP

How many numbers does java int have? How many numbers does java int have? Mar 06, 2023 pm 04:09 PM

How many numbers does java int have?

What is the value range of int32? What is the value range of int32? Aug 11, 2023 pm 02:53 PM

What is the value range of int32?

How many bytes does int occupy? How many bytes does int occupy? Jan 22, 2024 pm 03:14 PM

How many bytes does int occupy?

php提交表单通过后,弹出的对话框怎样在当前页弹出,该如何解决 php提交表单通过后,弹出的对话框怎样在当前页弹出,该如何解决 Jun 13, 2016 am 10:23 AM

php提交表单通过后,弹出的对话框怎样在当前页弹出,该如何解决

How to convert string to int type How to convert string to int type Aug 02, 2023 am 10:59 AM

How to convert string to int type

How to convert String to Int in Java How to convert String to Int in Java May 15, 2023 pm 02:22 PM

How to convert String to Int in Java

See all articles