Say I have a string in php, that prints out to a text file like this:
nÖ§9q1Fª£
How do I get the byte codes of this to my text file rather than the funky asc
If You wish to get the string as an array of integer codes, there's a nice one-liner:
unpack('C*', $string)
Beware, the resulting array is indexed from 1, not from 0!