Hello everybody,
i need to create the intersection of multiple arrays.
I'm aware that this is done with the array_intersect-function.
My problem is, that - at runtime - i don't know which arrays are filled and which are empty. So now the array_intersect throws an error-message "argument x is not an array" - Sure it does, it has to ;-)
My problem is: How do i just put the full arrays into the argument-line of array_intersect and discard the empty ones...?
Any help is greatly appreciated.
Thanx in advance,
Daniel Purucker
i need to create the intersection of multiple arrays.
I'm aware that this is done with the array_intersect-function.
My problem is, that - at runtime - i don't know which arrays are filled and which are empty. So now the array_intersect throws an error-message "argument x is not an array" - Sure it does, it has to ;-)
My problem is: How do i just put the full arrays into the argument-line of array_intersect and discard the empty ones...?
Any help is greatly appreciated.
Thanx in advance,
Daniel Purucker