https://www.php-resource.de/forum/php-developer-forum/35293-foreach-in-variable