Base conversion of arbitrary sized numbers (PHP)
问题 I have a long "binary string" like the output of PHPs pack function. How can I convert this value to base62 (0-9a-zA-Z)? The built in maths functions overflow with such long inputs, and BCmath doesn't have a base_convert function, or anything that specific. I would also need a matching "pack base62" function. 回答1: I think there is a misunderstanding behind this question. Base conversion and encoding/decoding are different . The output of base64_encode(...) is not a large base64-number. It's a