Hello,
Im trying to store 4 rows of delimited text from a text file(
abc, abc, abc, abc
abc, abc...
...
...)
into an array and loop each line of the array
and print it, but its not going well.
<?
$file1 = "properties.txt";
$filedata = fopen($file1,"r");
$array1 = file ($file1);
$file2 = gettext($array1, 1);
//forget the loop for now
for ($count1 = 0; $count1 < count($array1); $count1++ )
{
$line1 = $array1[$count1];
}
print "$array1 $file2";
exit;
function gettext ($text)
{
$array2 = explode(",", $text);
return $array2;
}
?>