note 20682 rejected from function.chop by alindeman
| From: | alindeman@php.net | Date: | Fri, 12 Apr 2002 20:34:19 +0000 |
| Subject: | note 20682 rejected from function.chop by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-29173@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