replace is not you need according to its
description.
"Given a string, replaces the
first occurrence of a search string with a
replacement string."
"also if i want to delete suffix with underscore symbol is it just change to ...?"
Yes, but when doing
PHP Code:
szChoosenCos[strlen(szChoosenCos) - 2] = '^0';
make sure the string contains at least 2 characters.