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" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
> [EMAIL PROTECTED]
>
>
>
> "Craig" <[EMAIL PROTECTED]> 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
> >
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to