faqts : Computers : Programming : Languages : PHP : kms

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

3 of 3 people (100%) answered Yes
Recently 3 of 3 people (100%) answered Yes

Entry

How can I validate a € euro character to xhtml from a database record echo?

Dec 23rd, 2004 10:29
Matthew Wilkinson, Kevin Britain,


If you have access to the information before it is echoed, you can use
this function:
$a = str_replace("€", "<Whatever the HTML code for € is>", $a);
Where $a is the variable containing the information to be echoed.