note 69318 added to function.strlen

From: Date: Thu, 31 Aug 2006 12:18:34 +0000
Subject: note 69318 added to function.strlen
Groups: php.notes 
Request: Send a blank email to php-notes+get-116541@lists.php.net to get a copy of this message
Simple way to cut off long sentences: $len = strlen($textold); $limit = 65; if($len > $limit) { $textnew = substr($textold,0,$limit)."..."; } else { $textnew = $row[1]; } ---- Server IP: 83.137.20.120 Probable Submitter: 212.45.32.211 (proxied: 212.84.133.5) ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.strlen.php Edit -- https://master.php.net/note/edit/69318 Del: integrated -- https://master.php.net/note/delete/69318/integrated Del: useless -- https://master.php.net/note/delete/69318/useless Del: bad code -- https://master.php.net/note/delete/69318/bad+code Del: spam -- https://master.php.net/note/delete/69318/spam Del: non-english -- https://master.php.net/note/delete/69318/non-english Del: in docs -- https://master.php.net/note/delete/69318/in+docs Del: other reasons-- https://master.php.net/note/delete/69318 Reject -- https://master.php.net/note/reject/69318 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#116541) next »