I am trying to find the "-" character in a string and change it to "_". Any ideas?
thnx,
-D
This is the simple way to do it, str_replace() function:
str_replace("-","_",$string);
This is simpler: $string = strtr($string, '-', '_');