note 20682 added to function.chop

From: Date: Fri, 12 Apr 2002 09:29:25 +0000
Subject: note 20682 added to function.chop
Groups: php.notes 
Request: Send a blank email to php-notes+get-29149@lists.php.net to get a copy of this message
Cewl reply... ;-) Anyway... is there also a very short way to cut a strings length.... so it will never be more than 40 chars? I could do it with your code.... to first get the length of a string.. and then chop the difference between that length and 40(the amount of chars I would like to keep). But guess there must be a shorter way. Anyone? And if you find an answer, plz mail me at denagam@chello.nl Thnx in advance -- http://www.php.net/manual/en/function.chop.php http://master.php.net/manage/user-notes.php?action=edit+20682 http://master.php.net/manage/user-notes.php?action=delete+20682 http://master.php.net/manage/user-notes.php?action=reject+20682

« previous php.notes (#29149) next »