https://www.php-resource.de/forum/php-developer-forum/60496-array-funktion