If I correctly interpret that you wish to replace all slashes with something else (like nothing), you can use the str_replace() function:
if your slashed data is in $dirtyData array:
$cleanData = str_replace("\\","",$dirtyData);
Obviously, adapt the above to fit you particular need if the interpretation isn't quite right;