I know I can use number_format, but is there a way to represent base32 numbers? For example, hex can be represented with 0x... and octal can be represented with a 0 in the front. Is there anything to represent base32 numbers in php?
Use the built-in function base_convert. For example:
// To convert from base 10 to base 32:
echo( base_convert( 12345, 10, 32 ) );
I never seen a native notation for base32, but there is ofcourse Base_convert() .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With