This question already has an answer here:
- What does the .= operator mean in PHP? 4 answers
- Reference — What does this symbol mean in PHP? 18 answers
What is the difference between .= and = ? What is .= used for?
Example:
<?php
$file = fopen('WERK-tabelle.csv', 'r') or die('error');
$yml = '';
$keys = [
blabla, code, php
];
while (($values = fgetcsv($file, 0, ';')) !== FALSE) {
$yml .= "<br>";
$arr = array_combine($keys, $values);
foreach ($arr as $key => $value) {
$yml .= "<br>{$key}{$value}
";
}
}
</div>