Posted on May 13th, 2007
4204 views
So, like most people that come to Pixel2Life I was browsing through the front page. Usually I check out either the PHP or Photoshop tutorials. Anyways, I came came across this little Gem and really was fascinated with the idea of encrypting the email so that bots crawling through the page would not recognize it as an email but the browser would. I was checking out the PHP code and thought that there had to be an easier way to write the function so that there were not so many lines of code and this is what I came up with.
function encryptString($str) { Generally, it can be used to encrypt any string from this: [email protected] into this: email@server.com |