Jump to content

[SOLVED] Move data with stealth.


Fredric

Recommended Posts

Hello there. Currently i have various data in a string like this:

 

351#Klimbo#Sogndal#1998#Xcim#4#mim
352#Dimbo#Ålesund#1998#Dixco#1#min
353#Zimbo#Oslo#1998#Frixo#2#mim
354#Crimbo#Oslo#1998#Crispo#2#mim
355#Finbo#Porsgrunn#1998#Nicey#1#min

 

As you can see the data is separated by the "#" sign.

 

Lets take a look at line 1 first:

351#Klimbo#Sogndal#1998#Xcim#4#mim

 

What I want to do is put the data found in column 5 (Xcim) to change place with the data in column 4 (1998). So the output would be  like this:

 

351#Klimbo#Sogndal#Xcim#1998#4#mim

 

 

I want this to be repeated on all lines.

 

Criterias.

Only PHP 4.x functions can be used.

 

 

Hope someone can help me with this, I have been wondering about this problem for quite some time now! I cant get it out of my head  ???

Link to comment
https://forums.phpfreaks.com/topic/42352-solved-move-data-with-stealth/
Share on other sites

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.