note 26750 deleted from function.chunk-split by didou
| From: | didou@php.net | Date: | Sun, 18 May 2003 01:09:36 +0000 |
| Subject: | note 26750 deleted from function.chunk-split by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-48313@lists.php.net to get a copy of this message | ||
Note Submitter: kevin@oceania.net
----
This simple script takes a string and inserts a line break every 5 chars
<?php
$string='abcdefghijklmnopqrstuvwxyz0123456789';
$string=chunk_split("$string", 5, '<br />');
echo $string;
?>