Posted by Davide on 01/14/05 09:41
hi,
I must change some bytes in array filled from a msssql text field; now I do:
function adjust (&$ar_in) {
$ar_in{0}='Ð';
$ar_in{1}='Ï';
$ar_in{3}='à';
$ar_in{4}='¡';
$ar_in{5}='±';
$ar_in{7}='á';
}
I've copied/pasted values from an hex editor and this works ok. Question
is: does exists a more elegant way to do this, using directly hex values
in the script?
I tried $ar_in{0}=0xFF for example, but when I write on file I got hex
32 (ascii '2').
[Back to original message]
|