Cut String
I need help with cutting strings.
I.E. : "This is my string" (without quotes) And I need it to cut as here: "this" " is my string" I tryed it with strbreak, split or parse and it didn't functioned, because I still get: "this" "is my string: Does someone know how to solve my problem? Thnx. |
Re: Cut String
strbreak is what you need.
http://www.amxmodx.org/funcwiki.php?...strb&go=search All you have to do is add an extra space to the second part of the string. This should work : PHP Code:
|
Re: Cut String
Thnx, but your solution is not what I need.
There is no other way how to split string exatly as it is ? With spaces ? Because I wanted to make scrolling text by show_hudmessage, so I need cut first char of string and put it to end. I wanted to do it by strbreak() and format() but as I said I have problem with spaces when use strbreak(). |
Re: Cut String
PHP Code:
PHP Code:
|
Re: Cut String
Quote:
PHP Code:
|
Re: Cut String
Quote:
PHP Code:
|
Re: Cut String
Quote:
PHP Code:
|
Re: Cut String
I didn't know it too :shock:
Thnx very much to all ! Problem solved :) |
| All times are GMT -4. The time now is 09:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.