Bug #12476: a function that splits a string into equal parts while retaining whole words
| From: | adam at wangallery dot com | Date: | Tue, 31 Jul 2001 02:48:53 +0000 |
| Subject: | Bug #12476: a function that splits a string into equal parts while retaining whole words | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-61610@lists.php.net to get a copy of this message | ||
From: adam@wangallery.com
Operating system: linux
PHP version: 4.0.4pl1
PHP Bug Type: Feature/Change Request
Bug description: a function that splits a string into equal parts while retaining whole words
//perhaps a function like this
<?php
$str = "blah blah blah blah blah blah";
$columns = str_seperate($str,2);
echo $columns[0].'<br><br>'.$columns[1];
?>
//outputting
blah blah blah
blah blah blah
--
Edit bug report at: http://bugs.php.net/?id=12476&edit=1