note 94129 added to function.str-word-count

From: Date: Sun, 18 Oct 2009 10:29:54 +0000
Subject: note 94129 added to function.str-word-count
Groups: php.notes 
Request: Send a blank email to php-notes+get-161848@lists.php.net to get a copy of this message
Replace $string = substr($string, 0, strlen($string)); with $string = trim($string); All it's doing is removing the leading and trailing whitespace. ---- Server IP: 92.48.74.199 Probable Submitter: 86.154.152.62 ---- Manual Page -- http://www.php.net/manual/en/function.str-word-count.php Edit -- https://master.php.net/note/edit/94129 Del: integrated -- https://master.php.net/note/delete/94129/integrated Del: useless -- https://master.php.net/note/delete/94129/useless Del: bad code -- https://master.php.net/note/delete/94129/bad+code Del: spam -- https://master.php.net/note/delete/94129/spam Del: non-english -- https://master.php.net/note/delete/94129/non-english Del: in docs -- https://master.php.net/note/delete/94129/in+docs Del: other reasons-- https://master.php.net/note/delete/94129 Reject -- https://master.php.net/note/reject/94129 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#161848) next »