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
Tag: bit
correct way of saving dropdown in php
I am using 2 kinds of dropdowns. The Yes/No and one with multiple values. Either way I use this: or The value of the Yes/No I store as a bit (before as tinyint) in my mysql-db. The multiple-choice I store as int. I get the values out of my object $member and try to select the right value: This works