Thread
:
Loop Through Characters in String
View Single Post
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
12-06-2009 , 20:03 Re: Loop Through Characters in String
#
3
A more efficient way:
PHP Code:
new
n
=
0
;
while (
mystring
[
n
] !=
'\0'
) {
// Do your stuff here...
n
++;
}
__________________
Why reinvent the wheel ?
Download smlib
with
over 350
useful functions.
When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni
View Public Profile
Send a private message to berni
Find More Posts by berni