PHP Classes

why not use base_convert()?

Recommend this page to a friend!

      PHP Convert Base36  >  All threads  >  why not use base_convert()?  >  (Un) Subscribe thread alerts  
Subject:why not use base_convert()?
Summary:PHP does this natively since PHP 4
Messages:1
Author:Michael Richey
Date:2019-04-30 06:42:10
 

  1. why not use base_convert()?   Reply   Report abuse  
Picture of Michael Richey Michael Richey - 2019-04-30 06:42:10
PHP converts base 36 natively with the base_convert() function. It was introduced in PHP4 in 2000.

php > echo base_convert(12345,10,36);
9ix
php > echo base_convert('9ix',36,10);
12345