Menu
Hey,
I have an aray of values pulled from a form.
I know I can do this in another way but was wondering if there was a way to change the values of the array as I iterate it?
[code=php]foreach($values as &$value)
gives me a parse error, probbaly because I believe that only came about in PHP5?
Is there another way to do this?
what I want is something like:
[code=php]
foreach($values as $value){
$value = addslashes($value);
}
thanks for help
~~CM!