ereg_replace('\','',$summary);
How would I make that work? Gives off an error for obvious reasons ... but how do I circumvent it?
if you're trying to escape apostrophes, use addslashes()
Cgraz
I'm trying to escape \
escape it with another \
echo "today\'s date is 04\25\03";
Yeah yeah, i know everyone uses a forward slash for the date; this is just an example.
I think you're missing what I'm trying to do.
I have a string called $summary ... and it has several \'s in it.
I want to remove all those \'s.
When I try:
ereg_replace("\","",$summary);
It gives off an error.
to remove all the instances of
's
in your string. . .
$summary = str_replace("\'s", "", $summary);
wahhh i JUST want to remove "\" without the quotes. i JUST want to remove the backwards slash
oh! use this:
$summary = str_replace("\", "", $summary);
thanks