PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Tue Jul 25, 2017 9:47 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: HTML Special Characters
PostPosted: Thu Oct 18, 2012 11:40 am 
Offline
Forum Commoner

Joined: Mon Jul 09, 2012 7:30 am
Posts: 35
Location: India
It will show you some HTML Special Characters you dont even know!
Works best with Mozilla Firefox.
Syntax: [ Download ] [ Hide ]
<?php
echo  '<html>
<head>
<title>HTML Special Characters</title>
</head>
</body>
<center><h2>HTML Special Characters</h2>
<font color="green">Values</font> - <font color="red">Chars</font></center>'
;
for($i=2;$i<=11097;$i++){
$post_bg=($bg++%2==0 )?"background-color:black;color:white":"background-color:white;color:black";
echo '<div style="'.$post_bg . ';text-align:center">
<font color="green">&amp;#'
.$i.';</font>-<font color="red">&#'.$i. ';</font>
</div>'
;
}
echo  '</body>
</html>'
;
?>


Top
 Profile  
 
PostPosted: Thu Oct 18, 2012 12:28 pm 
Offline
Spammer :|
User avatar

Joined: Wed Oct 15, 2008 2:35 am
Posts: 6457
Location: WA, USA
Decimal HTML entities, yeah. You can do it in hex too.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group