Raised This Month: $ Target: $400
 0% 

Solved Replace in a String that Contains Repeated Chars


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode