Re: Word Count
| From: | Craig | Date: | Fri, 24 Jan 2003 13:24:55 +0000 |
| Subject: | Re: Word Count | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-132986@lists.php.net to get a copy of this message | ||
Using these methods, could you use it to insert additional text before and
after the first word (or the nth word)
e.g.
$text = "This is my text, for placement";
$textWithAddedString = "(word1 start)This(word1 end) is my text, for
placement";
"Maxim Maletsky" <maxim@php.net> wrote in message
news:20030123222535.5E19.MAXIM@php.net...
> words, for a programming language, are nothing more than just the spaces.
> So, as previousely was shown - could the mount of spaces in the string
> to get the amount of `words' in between them.
>
>
> --
> Maxim Maletsky
> maxim@php.net
>
>
>
> "Craig" <craig@sitedesign.net> wrote... :
>
> > Is there a way to count the number of words in a string?
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>