[HELP]edit content from string (strbreak)
for example i got queried sql result from row data:
Quote:
lets say i have successfully edited 2440 to 3444, and whole string should look like: Quote:
other contents rest same |
Re: [HELP]edit content from string (strbreak)
You could break it by spaces with strbreak(), turn the string into a number with str_to_num(), edit the number and then add the two parts together again using formatex(%d %s, first_number, rest_of_string)
This example reproduces your example: Code:
Code:
3444 0 2 5 3 0 0 0 0 0 0 0 0 |
Re: [HELP]edit content from string (strbreak)
Quote:
Thank you, thats exact what i need, but found it earlier, so thanks for lightweight code, ill improve mine with this :) |
| All times are GMT -4. The time now is 06:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.