Hi have data present in 3 arrays key1, key2 and data
The number of elements in the three arrays is same.
I have to write all the elements in a file as
$key1[0]
$key2[0]
$data[0]
$key1[1]
$key2[1]
$data[1]
.
.
.
.
Pretty simple, eh? But there is a problem. If while parsing, a $data has appeared before, that should not be in the file.
So lets say
$data[45] has come before, in that case
$key1[45]
$key2[45]
$data[45]
Should not be dumped in the file.
So I am uniquifying an array(which is pretty simple in itself), and controlling the printing of 2 other arrays using this.
Any tips welcome!