Re: [PHP] Question using chop :-)

2001-03-31 Thread Yasuo Ohgaki
It's not explain why you get additional char at the end of string, but chop() in PHP does not get rid of last char, but it also suppose to get rid of spaces including newline. What char code are you using? Char code may be the cause. -- Yasuo Ohgaki ""Marcus Ouimet"" <[EMAIL PROTECTED]> wrote i

[PHP] Question using chop :-)

2001-03-30 Thread Marcus Ouimet
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 l