I am beginner in php . In my application i have to read a csv file and store the values of each row in two variables: $name
and latin
.
while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
foreach($data as $value)
{
if($i>8){
// $fgmembersite->InsertUserBirds($value);
echo $value;
}
}
$i++;
echo '<br/>' ;
} fclose($handle);
each row row contains four or three words ( $name
is the first and the second word (if the length of row is 4 words) and the $latin
store the last two words:
How can i do it to add the array $latin
and $name
?