Yes, but you dont' need to answer questions to ones that already have an answer, or a few for that matter.
And my exclamation marks were warranted. Mainly because:
To tell you the truth, I never even read your code. I just scrolled down to what was then the end of the thread, . . .
The point of threading conversations is to read what others have already offered for advice. Then, if you can offer some insight, or a different point of view on the already given answer you post.
I didn't mean to go off on you, or anyone else, but it's the basic principle of looking before you leap, reading before you post, thinking before you say.... I only got upset because...
gadeer_ahmed
yes we can find last char with substr
justsomeone
$string="abc def xyz qaz";
$string=substr($string,0,(strlen($string)-1));
echo $string;
I don't see any major difference(s) between the two ideas. Perhaps some explanation would have helped, but you just said you can find it with substr and strlen, that much he knew.
I apologize, but can we please be a little better of reading at most the "useful looking" posts? I mean, reading ones that either post code or seem to be helpful. Maybe you don't have to read word for word, but skimming to see if an answer was given would be better. What I would hate to see (and what I have seen elsewhere) is where one answer is given, then another, and another, and no-one wants to help the guy learn, but just wants their help acknowledged and that they helped him and no-one else. We're here to learn (I'm glad you learned something) and let's just remember that in order to learn from eachother, we must READ their posts.
Apologies...
~Brett