https://www.php-resource.de/forum/php-developer-forum/27303-funktion-array-problem-chen