What kind of string representation is this?

106 Views Asked by At

I'm running the following code and I get the following output. According to the documentation it says it returns a binary string?

PHP\pack('H*', 'ab') //     "\253"
PHP\pack('H*', 'a')  //     "\240"

I can't for the life of me figure out 253 is 'ab'. 253 is 11111101 in binary which if you were to break out is

1111 and 1101 which don't map to a or b?

What does "\253" represent?

1

There are 1 best solutions below

0
On BEST ANSWER