Re: how to divide string

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

 



This one time, at band camp, Adi Zebic <adi@xxxxxxxxxxxx> wrote:

> is there any magic function who can give me from:
> 
> $string = " abcdefghijklmnopqrstuwvxyz";
> 
> somthing like this:
> 
> abcd
> efgh
> ijkl
> mnop
> qrst
> uwvx
> yz


$newstring=chunk_split("$string", 4, '<br />');

Kevin

-- 
"Democracy is two wolves and a lamb voting on what to have for lunch. 
Liberty is a well-armed lamb contesting the vote."

-- 
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