Re: Splitting long text

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Anas Mughal wrote:

> I have been using the below function successfully. Hope it works for you.
> -- Anas
>
>
>
> // textwrap 1.1 Brian Moon <brian@xxxxxxxxxx>
> // 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

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux