Schau dir doch mal die restlichen Array-Funktionen an. Da gibt es beispielsweise noch:
- array_filter -- Filters elements of an array using a callback function
- array_map -- Applies the callback to the elements of the given arrays
- array_reduce -- Iteratively reduce the array to a single value using a callback function
- array_walk -- Apply a user function to every member of an array
Diese Funktion sind doch aber auch nicht ursprünglich für multidimensionale Array ausgelegt!