If you need to print out special characters in PHP you will probably want to get familiar with the built-in chr() function. Here’s some code that will demonstrate the various ASCII character codes available and how to output them to the screen:

<?php
print ‘Copyright (169): ‘ . chr(169);
print ‘<br />Registered Trademark (174): ‘ . chr(174);
print ‘<br />Trademark (153): ‘ . chr(153);
print ‘<br />’;

for($i=1; $i&lt;256; $i++) {
        print “$i <b>” . chr($i) . ‘</b> ‘;
}
?>

Working example here.