> 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]
- [PHP] regular expression help Jamie Burns
- Re: [PHP] regular expression help Jeff Warrington
- [PHP] Regular Expression Help Jeff Oien
- [PHP] Regular Expression Help Henrik Hansen
- [PHP] Regular Expression Help Jason Caldwell
- Re: [PHP] Regular Expression Help Mark Maggelet
- Re: [PHP] Regular Expression Help Christian Reiniger
- [PHP] Regular Expression help Clayton Dukes
- [PHP] regular expression help Justin French
- [PHP] Re: regular expression help _lallous
- [PHP] regular expression help adrian [EMAIL PROTECTED]
- Re: [PHP] regular expression help Maxim Maletsky
- Re: [PHP] regular expression help Khalid El-Kary

