note 87728 deleted from function.wordwrap by danbrown

From: Date: Thu, 18 Dec 2008 14:41:30 +0000
Subject: note 87728 deleted from function.wordwrap by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-148312@lists.php.net to get a copy of this message
Note Submitter: admin at studio-gepard dot pl Reason: integrated ---- remark to note from 09-Dec-2008 02:09: instead of: <?php $String = wordwrap($str, $end, '[cut]', false); ?> put <?php $String = wordwrap($str, $end-$start, '[cut]', false); ?> Otherwise in some cases results might not be as expected. Also: if your text contains "[cut]" - simply swap that in function to something like "#$%^@" - should fix the problems with cutting text in wrong places.

« previous php.notes (#148312) next »