Re: A way to break up the string????

From: Date: Wed, 29 Jan 2003 15:01:49 +0000
Subject: Re: A way to break up the string????
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-133514@lists.php.net to get a copy of this message
Don't forget, if you just want to look for word break's (spaces), instead of exploding the data then doing a count, you could just: $wordcount = (substr_count($name," ")+1); On Wed, 2003-01-29 at 10:03, Scott Fletcher wrote: Wow!! A lot easier. I think I can do the counting to find out if which go which. For example, "Jennifer B Cuff" as oppose to "Jennifer Cuff". Say, I find 3 words instead of 2 then do something to it. If 2 then do something to it. Etc. I do realize that it is possible for there to be a logic error, like "Cuff" which can't be tell as first name or last name if I don't get the data like "Jennifer Cuff". Thanks!!! You are the best newsgroup to talk to!!!! :-) "Jon Haworth" <jhaworth@witanjardine.co.uk> wrote in message news:67DF9B67CEFAD4119E4200D0B720FA3F0241EC3B@BOOTROS... > Hi Scott, > > > Just curious, is there a PHP function that will break up the > > string for us? > > http://php.net/explode > > > Cheers > Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Adam Voigt (adam@cryptocomm.com) The Cryptocomm Group My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc

Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
« previous php.general (#133514) next »