I'm looking how to pass a string/array to a function, I have tried to pass by value, but it doesn't seem to work, I have looked online and seen by reference but that doesn't seem to be working either.

Can anyone help?