Page 1 of 1

Currency simble

Posted: Thu Jul 06, 2006 4:54 am
by animatronico
How do I change the currecy simble in php I got an script from dotcombuilder but i need to use the script for English costumers so I need to change the $ to £ simble any one know how to change? :?:

Posted: Thu Jul 06, 2006 4:55 am
by JayBird
probably best to ask the author of the script

Posted: Thu Jul 06, 2006 5:46 am
by technofreak
Won't a string replace of the unicode value for $ to that of the pound/euro symbol do the job ? I have seen the workaround for the replacement somewhere, better google for answers (may be in our forum itself, there might me one) :)

Posted: Thu Jul 06, 2006 6:49 am
by mattcooper
Won't a string replace of the unicode value for $ to that of the pound/euro symbol do the job ?
This works:

Code: Select all

<?
$page = file_get_contents('http://forums.devnetwork.net/viewtopic.php?t=51184');
echo (str_replace('simble','symbol',$page));
?>
Corrects dodgy spelling of the word "symbol" :D !!!