View Single Post
damage220
Member
Join Date: Jul 2022
Location: Ukraine
Old 07-20-2022 , 11:09   Re: Replace in a String that Contains Repeated Chars
Reply With Quote #8

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.
damage220 is offline