Folks,
When I read data from my form, I sanitize it before recording it in MySQL.
At the moment, the values in $_POST are cleaned and returned in a new array
called $formData.
I found my accident that I could change the value of $_POST thus I was
thinking it would be better usage of memory (and therefore overall
performance) if instead of having duplicate data that I instead have the
cleaned data returned to $_POST.
I know I *can* do this - what I don't know is if its a feature or a bug (ie
if I depend on it now will later versions of PHP (either v4 or v5) make such
a dependancy redundant.
Can anyone comment on what they advise as being best practice here?
cheers
randelld
Comment