ok, I want to replace the $ in this string with nothing. So I wrote this little test script and it doesn't work. I'm sure it has something to do with the $ because when I tell it to replace the 2 with nothing it works. Any ideas?
<?
$price ="\$1234";
$repl ="";
$hjk = (ereg_replace("\$", $repl, $price));
echo $hjk;
?>
When faced with a decision, always ask, 'Which would be the most fun?'
<?
$price ="\$1234";
$repl ="";
$hjk = (ereg_replace("\$", $repl, $price));
echo $hjk;
?>
When faced with a decision, always ask, 'Which would be the most fun?'