hello!
i am having some problems when grabbing some data from a txt file to my php page.
In a file called file.txt I have the following data:
n=4&1=surf&2=climbing&3=snowboard&4=skate
I need my php page open this file, read it and understand that the variable n ($n) is equal 4 ($n=4), and the variable 1 ($1) is equal surf ($1=surf), up to the last number. So if I use the command <? echo "$n"; ?> it will return 4, if I use <? echo "$1"; ?> I´ll get surf.
Actually, n is equal the number of sports I have after the first &, in this example from surf to longboard.
Please if possible, send replies to marianoneves@uol.com.br.
Thanks in advance...
Best Regards
Mariano Neves