> I want to delete everything after a tab (or space) on each line of
> a text file and can't figure it out. 
> 
> An example line is
> ARIA 5.19 -0.0625 -1.19 5.25 4.5 48.5 100300
> 


you can explode on a tab $arrlines = explode("\t", $the_line);
then save $arrlines[0] from every line.

Don't know if it's the most optimal way but it works :)

--
Henrik Hansen


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to