Question using chop :-)
| From: | Marcus Ouimet | Date: | Thu, 01 Mar 2001 19:06:40 +0000 |
| Subject: | Question using chop :-) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-46364@lists.php.net to get a copy of this message | ||
I have got chop to work for me to remove characters at the end of the
string using something like:
echo $listing_values1 = chop(substr($listing_values['name'],0,4);
echo $listing_values1 ['name'] . '...' . ' ' .
"\n";
Works great except for the fact after the name there appears to be a letter
ie:
Brita Water Filter
Would become:
BritaB...
The letter is different for each entry. What am I oing wrong. Any help
appreciated thanks in advance...