note 108497 deleted from function.wordwrap by peehaa

From: Date: Thu, 09 Mar 2017 09:11:03 +0000
Subject: note 108497 deleted from function.wordwrap by peehaa
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-208876@lists.php.net to get a copy of this message
Note Submitter: ytwguru at gmail dot com ---- I've seen a few solutions to the same problem. Here's a solution to breaking long text with a space. In this case it breaks after matching 27 characters. $content = preg_replace("/([^\s]{27})/", "$1 ", $content); You can probably write a function for this...

« previous php.notes (#208876) next »