php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #12476 a function that splits a string into equal parts while retaining whole words
Submitted: 2001-07-30 22:48 UTC Modified: 2001-07-31 18:48 UTC
From: adam at wangallery dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.0.4pl1 OS: linux
Private report: No CVE-ID: None
 [2001-07-30 22:48 UTC] adam at wangallery dot com
//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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-31 18:48 UTC] cynic@php.net
see http://www.php.net/wordwrap
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC