I'd just use my good buddy preg_replace...
$pat = "Smart\$Fast Chargers";
$pat preg_replace("$", "/", $pat);
echo "$pat";
That should work and print: Smart/Fast Chargers
Patty wrote:
Hi there,
I'm trying to replace the $ in Smart$Fast Chargers with a / (so it becomes Smart/Fast Chargers)
I've tried this:
$pat2 = "\$";
$repl2 = "/";
$table_name_fetched2 = ereg_replace( $pat2, $repl2, $table_name_fetched1 );
but then:
Smart$Fast Chargers
becomes:
Smart$Fast Chargers/
yikes! can someone help me out?
thanks alot,
Patty