How do I use php to convert to echo "<a href='mailto:sarah@mysite.com'>sarah@mysite.com</a>"; Code (markup): Actually that's not right: if you view the source you will see that the href is a string of html codes. "m" is written as & # 109 (without the spaces) and so on. The idea is that the idea is that mail harvesters will find it hard to read and move on, not realising that this is an email address. I've trawled around http://www.php.net but can't find an obvious solution. I'm guessing that there is a command, or do I need to hard code the ascii codes for the alphanumeric characters and just use urlencode for the rest? Sarah
found my own answer http://www.php.net/ord there are examples with the code. I don't think ord() is the most intuitive name for a function tho'
No, "ord" is surely not intuitive. I had to hunt a while, thinking there was no such PHP function, till I finally found it the first time. "Ordinal", I guess?