Skip to content
Advertisement

Tag: non-ascii-characters

PHP reversing a byte and printing it

I’m working with strings in PHP and the character ‘a’ in binary looks like this: 01100001. What I want to do is reverse this, which then becomes 10000110 and convert back to its text representation, but everytime I try it either gives me a ? or a blank square indicating a non-printable or invalid character. I tried online ASCII/UNICODE binary

Advertisement