I know this is a pretty silly question, but I don\'t know what to do.
I have an arbitrary binary number, say,
100100000011001000000010010000001000001
$number = 1001000000110010000000100100000010000011000000010001000001011000110000110000011100011100000011000000010010011000100000000000000100100000010110001100001000000111; echo base64_encode ($number);
This is if you want the exact string be converted into Base 64.