|
-
Jan 9th, 2009, 03:56 PM
#1
Thread Starter
Lively Member
[RESOLVED] Spliting string into pieces
hey,
i have a string for example
abcdefghijklmnopqrstuvwxyz
is there any function or something that
will let me split this string
into several pieces?
lets say:
split(string,number of pieces)
note that i dont care if the len(string) is non dividable from the given number of pieces
for example
if the string is
abcde
and the number of pieces are 3 its ok to give a result like this:
var[1] = ab
var[2] = cd
var[3] = e
somehow with an array
hope its not that hard,
thanks in advance!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|