Reply to Re: Splitting a string into three parts

Your name:

Reply:


Posted by techusky on 09/19/07 21:48

On Sep 19, 3:44 pm, Krustov <m...@privacy.net> wrote:
> <comp.lang.php>
> <>
> <Wed, 19 Sep 2007 19:25:47 -0000>
> <1190229947.157523.58...@22g2000hsm.googlegroups.com>
>
> > I am making a website for a newspaper, and I am having difficulty
> > figuring out how to take a string (the body of an article) and break
> > it up into three new strings so that I can display them in the
> > traditional newspaper column format.
>
> > For instance, say the string $articleBody contains a 600 word article.
> > What I want to do is break $articleBody up into three new strings in a
> > format such as this:
>
> > $string1 contains words 0-200 from $articleBody
> > $string2 contains words 201-400 from $articleBody
> > $string3 contains words 401-600 from $articleBody
>
> $newtext=wordwrap($slap,200,"\n",1);
>
> --
> (c) The Amazing Krustov

I'm sorry, but that does not do what I described. I need to take one
string and turn it into three separate strings. Thank you for your
quick reply, though.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация