Re: how to divide string
| From: | Kevin Waterson | Date: | Mon, 05 Sep 2005 12:18:43 +0000 |
| Subject: | Re: how to divide string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-221859@lists.php.net to get a copy of this message | ||
This one time, at band camp, Adi Zebic <adi@beeznest.net> 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."