Re: Splitting long text

From: Date: Wed, 24 Jan 2007 06:40:37 +0000
Subject: Re: Splitting long text
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-247678@lists.php.net to get a copy of this message
Anas Mughal wrote: > I have been using the below function successfully. Hope it works for you. > -- Anas > > > > // textwrap 1.1 Brian Moon <brian@phorum.org> > // This code is part of the Phorum project > <http://phorum.org> > // $String The string to be wrapped. > // $breaksAt How many characters each line should be. > // $breakStr What character should be used to cause a break. > // $padStr Allows for the wrapped lines to be padded at the begining. Short of string padStr in that function, and bool cut in the native PHP one, I don't see why someone wouldn't just use http://php.net/wordwrap/ . Travis Doherty

« previous php.general (#247678) next »