Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001092

[PHP] Re: importing a text file From: _lallous (elias_bachaalany <email protected>)
Date: 09/21/01

You want to parse the non blank lines out of the blank lines?

"Dominica Anderson" <dominica <email protected>> wrote in message
news:20010920171506.29866.qmail <email protected>
> I have a text file that is formatted as such
>
> Something - SomethingElse
> <4 blank lines>
> SomethingMore
> <4 blank lines>
> Something - SomethingElse
> <4 blank lines>
> SomethingMore
> <4 blank lines>
> and so on
>
> Anyone have any ideas on what I would use to get this
> into seperate
> records that are $Something, $SomethingElse,
> $SomethingMore for displaying
> in php or even importing into mysql?
>
> I would even go for $Something and just $SomethingMore
> with $Something
> really being $Something-$SomethingElse. I don't know
> if that makes sense.
>
> Any help would be greatly appreciated.
>
>
> __________________________________________________
> Terrorist Attacks on U.S. - How can you help?
> Donate cash, emergency relief information
> http://dailynews.yahoo.com/fc/US/Emergency_Information/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>