Re: simple Regex

From: Date: Thu, 07 Dec 2000 12:55:56 +0000
Subject: Re: simple Regex
Groups: php.general 
Request: Send a blank email to php-general+get-29101@lists.php.net to get a copy of this message
Addressed to: delbono@dsc.it (Delbono) php-general@lists.php.net ** Reply to note from delbono@dsc.it (Delbono) Thu, 7 Dec 2000 11:52:11 +0100 > > Hello. > > I've this string to parse: Via Monticano Del COLLE > > How can I get the first three words? $Words = explode( ' ', $String ); $FirstThree = implode( ' ', array( $Words[0], $Words[1], $Words[2] )); I bet it is faster than ereg... Rick Widmer Internet Marketing Specialists http://www.developersdesk.com

« previous php.general (#29101) next »