I receive data like this:
$string = "\x01\x03\x08\xc0";
From this variable how to output (with echo
) the same value?
For example on python, when I type:
$ print [string]
I get this
["\x01\x03\x08\xc0"]
Note:
Without do $string = '\x01\x03\x08\xc0'
because I uses a server who receives data and the string variable is the data.
Can someone can help me?