Jump to content

Breaking a string into an array


gerkintrigg

Recommended Posts

Hello everyone.

I'm trying to split a string into different parts. The sring looks like this:

41:70:63:219

I then want to use this string to query the database using the first number (41) and then loop through the other numbers (70, 63 and 219) to get the associated values from another datbase.

After the first number, there may or may not be any amount of numbers. I know to use the : as a seperator, but not sure of the function to use.

Please help.

Thanks in advance.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.