I have the following code:
$filename = "raw_data.txt";
$fp = @fopen("$filename", 'r');
if ($fp){
$array = explode("(.)", fread($fp, filesize($filename)));
}
for ($i=0; $i<sizeof($array); $i++){
//name1 name2 name3 name4
}
So what I want to do is initialize variables with $name and the current $i value
Thanks in advance