Help: make a generic function
I was wondering if is possible to make functions that can take generic type and return it back after being processed.
I have a function and I would like this function to either take a string or an array
Depending on type a switch case will be activated accordingly but once processed I want to return that array or string back.
Is it possible to do so?