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').
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

