Re: HTMLENTITES(); & the pound sign

From: Date: Tue, 01 Jul 2003 16:04:33 +0000
Subject: Re: HTMLENTITES(); & the pound sign
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-153578@lists.php.net to get a copy of this message
What does the html look like? Mike "Bob pilly" <bobpilly@yahoo.co.uk> wrote in message news:20030701141605.11470.qmail@web40513.mail.yahoo.com... > I am using PHP Version 4.3.2-RC1 > > Can someone please clarify the htmlentities() function > for me? I have a variable called $notes2 that is > pulled from a database that has a pound sign in it. > When i echo that do the screen i get the following > output: > > echo $notes; > > output= £5,000 > > Instead of £5,000 > > I thought that if i did $notes=htmlentities($notes); > or echo htmlentities($notes); then the output would be > £5,000 but this isnt the case. Can someone see where i > am going wrong? > > Thanks for anyhelp in advance! > > > > > > > ________________________________________________________________________ > Want to chat instantly with your online friends? Get the FREE Yahoo! > Messenger http://uk.messenger.yahoo.com/

« previous php.general (#153578) next »