what are all the different methods to represent the pound £ English Money symbol

what are all the different methods to represent the pound £ English Money symbol
LVL 1
rgb192Asked:
Who is Participating?
 
Beverley PortlockCommented:
The safest to use is the HTML entity £
0
 
LFLFMCommented:
just type it up: £
example: echo "this costs £10.20)";
or use the ascii code: 156
echo "this costs " . chr(156) . "10.20";
0
 
LFLFMCommented:
oh sorry, its ascii 163
bportlock is correct... you can use "£"
also,you can use html ascii as "£"
0
 
Beverley PortlockCommented:
@LFLFM - using char 156 is OK until somebody uses a different character set either in MySQL, the browser or on their computer. That's why there is an HTML entity to represent this character that will render correctly in all situations.

0
 
rgb192Author Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.