|
-
July 12th, 2009, 01:25 PM
#1
construct array out of string
Hey, how can i make an array out of a string which contains something like this:
name:Trainwreck,location:forum,xpos:12ypos:67
So that's my string, now i want to create an array out of this so that i can ask the value from that array by the name. So for example in my array i should be able to do this:
myArray.name; (should give me: Trainwreck)
myArray.xpos; (should give me: 12)
myArray.location; (should give me: forum)
etc.
So my question is, how can i convert a string like that to an array?
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
|