note 126132 deleted from function.wordwrap by cmb

From: Date: Wed, 02 Jun 2021 09:25:19 +0000
Subject: note 126132 deleted from function.wordwrap by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-216464@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- There seems to be a bit of a glaring flaw with php's wordwrap method. Let's say you have a maximum length of 20 chars per line, and do not want words to be cut in two - this functions immediately useless to you. It provides no way of wrapping a long word down onto the next line, so you're either forced to chop that word in two, or let it run past the maximum length you set, which in a real word usecase is rarely going to be an option.

« previous php.notes (#216464) next »