PHP base_convert() Function

The base_convert() function is use to converts a number from one base to another.

Demo :



Base No :   Current Base
Convert Base
 

Example :

Type Base No Like : 100
Type Current Base No Like: 10
Type Convert Base No Like: 6

If you need to converts an custom base number following code useful to you.


<?php
 $Base_No = 100;
 $Current_Base_No = 10;
 $Convert_Base_No = 6;
 $result= base_convert($Base_No,$Current_Base_No,$Convert_Base_No);
 echo $result;
?>

In the above code is used to convert an current base to a new base number.In the base_convert() functions have used three arguments that name are string number,int frombase,int tobase.

Free Download Script :

If you need base_convert() function demo code download from following link.

Download




Content