string base_convert ( string num, int from_base, int to_base ) convert every base to every other base : base_convert « Math « PHP






string base_convert ( string num, int from_base, int to_base ) convert every base to every other base

 
<?
    print decbin(16);
    print base_convert("16", 10, 2);
?>
  
  








Related examples in the same category

1.Convert integer values to other bases such as binary or base 32 and base 36
2.function base_convert() converts any integer value from one base to another