RE: [PHP] Stripping!!!

From: Date: Thu, 11 Jan 2001 14:44:23 +0000
Subject: RE: [PHP] Stripping!!!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-34003@lists.php.net to get a copy of this message
Thx, but could anybody give me an example? It shouldnt be too hard?! *********** REPLY SEPARATOR *********** On 11/01/2001 at 13:50 Moritz Petersen wrote: >with every line do the following to get the name: > >$name = strtok($line, " "); > >Mo. > >> -----Original Message----- >> From: K.Simon [mailto:phpsoft@zabia.net] >> Sent: Thursday, January 11, 2001 1:19 PM >> To: php-general@lists.php.net >> Subject: [PHP] Stripping!!! >> >> >> I have a file with 45000 newsgroups in there. It looks like that: >> >> alt.1d 0000070753 0000057290 y >> alt.2600 0000515487 0000435743 y >> alt.3d 0000073441 0000059461 y >> alt.abortion.inequity 0000272142 0000227847 y >> alt.abuse-recovery 0000000036 0000000036 m >> alt.abuse.recovery 0000137940 0000021046 y >> alt.acting 0000052147 0000005774 y >> alt.activism 0000541011 0000437813 y >> alt.activism.d 0000050394 0000047001 y >> alt.activism.death-penalty 0000192721 0000097832 y >> >> Now i want to strip all the numbers out (not really all) so that >> it look like this: >> >> alt.1d >> alt.2600 >> alt.3d >> alt.abortion.inequity >> alt.abuse-recovery >> alt.abuse.recovery >> >> How can this be done with PHP? >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >> For additional commands, e-mail: php-general-help@lists.php.net >> To contact the list administrators, e-mail: php-list-admin@lists.php.net >> > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >For additional commands, e-mail: php-general-help@lists.php.net >To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#34003) next »