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" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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 ([EMAIL PROTECTED])
The Cryptocomm Group
My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to