Currency simble

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
animatronico
Forum Newbie
Posts: 1
Joined: Thu Jul 06, 2006 4:48 am

Currency simble

Post 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? :?:
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

probably best to ask the author of the script
User avatar
technofreak
Forum Commoner
Posts: 74
Joined: Thu Jun 01, 2006 12:30 am
Location: Chennai, India
Contact:

Post 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) :)
User avatar
mattcooper
Forum Contributor
Posts: 210
Joined: Thu Mar 17, 2005 5:51 am
Location: London, UK

Post 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 !!!
Post Reply