Im needing to put a whole bunch of variables into my mysql database. Although I would like to run a function on all of the variables that would strip them from characters like ">" for instance. If there is some way I could just stick them all in a loop it would make it much easier. For some reason the str_replace is only working for variables that are echoed right then. Any ideas???
Sounds like you are not saving the results of str_replace.
$s = str_replace( '>','',$s );
HalfaBee
str_replace will also work for arrays!