https://www.php-resource.de/forum/php-developer-forum/53417-problem-beim-speichern-einer-var-in-einer-foreach-schleife