Jump to content

Separating a string of characters separated by || into an array of elements


simplysandeep

Recommended Posts

Hi Guys

 

I'm returning to programming after 5 years, almost a newbie.

 

I have a field(column) in a MySQL database table that has strings of characters separated by a delimiter (||).

 

For example: (TOM||PAUL||HARRIS)

 

I would like to separate the strings into an array.

 

Something like this:

ARRAY[0] = 'TOM';

ARRAY[1]='PAUL';

ARRAY[3]='HARRIS';

 

Can some one tell me how to do this?

 

TIA.

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.