PHP Base conversion, Radix 255


/ Published in: PHP
Save to your folder(s)

Allows you to convert to any base between 2 and 255, effectively using all the ASCII characters.

In order to convert very large numbers with arbitrary precision you’ll need the BCMath lib. Without BCMath the large numbers will not be converted correctly due to PHP not being able to do the arithmetic.

URL: http://www.bucabay.com/php/base-conversion-in-php-radix-255/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.