here is basic example with chr(158):
 Code:
"if a string contains 158, it's ok:"
$string=chr(158)+"word"
? 'len of chr(158)+"word":' len($string) ?
? 'substr(that,2):' substr($string,2) ?
? 'len of substr(chr(158)+"word",2):' len(substr($string,2)) ?

? "but if it is initialised with it alone, it's BROKEN:"
$string=chr(158)
? 'len of chr(158):' len($string) ?
? 'substr(that,2):' substr($string,2) ?
? 'len of substr(chr(158),2):' len(substr($string,2)) ?
?

get $


with 4.62
_________________________
!

download KiXnet