yeah, i did look at ord() and chr() but neither one spits out the HTML entity. I guess I may have to pull everything from http://www.asciitable.com and create an array with the actual symbol as the keys and the HTML entity as the values and then do something like
echo $asciitable['e']; // outputs e
echo $asciitable['E']; // outputs E
i'm quite surprised PHP doesn't have a built in function for this.