I need to store a bit, either 1 or 0, inside 1 byte.
So:
$a = pack('C', 1);
How would I use bitwise operators on 1 or 0 to turn them into bits?