[PHP] function trouble: pass by referrence

2002-01-21 Thread Bryan McCloskey
Hello all, I'm trying to pass the $HTTP_POST_VARS array into a function to run some things like strip_tags, trim, and htmlspecialchars on all of the variables. If possible, I would like to pass this array by referrence, and have the function make changes to the actual array and not a copy. Accomp

[PHP] HTTP_POST_VARS and passing by reference

2002-01-17 Thread Bryan McCloskey
Hello, I'm attempting to make a function to which I can pass my form variables, to wit: clean_input($HTTP_POST_VARS); which will run through the array and clean up the variables. However, the passing by reference is giving me the screaming fits. No matter what I do, I can't seem to get the func