Recommend this page to a friend! |
![]() ![]() |
Info | ![]() |
![]() |
![]() ![]() |
Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 159 | All time: 8,942 This week: 119![]() |
Version | License | PHP version | Categories | |||
anybase 1.0 | Freeware | 5 | PHP 5, Text processing, Math |
Description | Author | ||||||||
This class can encode and decode numbers in any base up to 65, where PHP base_convert only works up to 36. |
|
Create a base numbering system to meet your needs.
Designed to create short urls based on a decimal id number - the default charset contains the unreserved URL characters and is good up to base65.
Using AnyBase is simple. Simply, initialize an object with or without a charset and use it to encode or decode a number.
$b65 = new AnyBase();
$original = 1000000;
$encoded = $b65->encode($original); // '3FIE'
$decoded = $b65->decode($encoded); // 1000000
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.