[snip] Hi I dont think so. This is basically one file read, that outputs many results. with a carriage return at the end So every line begins with Code39
I did a gettype() and I got a result of string. [/snip] If each line begins with Code39-> and looks like Code39->10301535 $theBarCode = substr($line, 0, 8); echo $theBarCode . "\n"; output is 10301535 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php