I have an file. Each value looks like this:
Peter | Stuart | 10293 | 13/02/93 | email@domain.com | [data6] | [data7] | [data8]
My question is, I want data 6, 7 and 8 to be in seperate variables.
So the variable would be like this (in PHP code)
$data6 = [data6]
$data7 = [data7]
$data8 = [data8]
Does that make sense? I understand a loop will be involved, it is more getting the data in between the “|” symbol I am not 100% sure about.
Thanks
Peter
you can use explode:
then you can access those values like any other array: