sigh
Sorry, I did not interpret your code correctly. Please indent your code properly next time.
Here's your current code with some indentation and braces added for emphasis:
<?php
//Email Obfuscator
$designMail = "design@rupstar.com";
$len = strlen($designMail);
for ($i=0;$i<$len;$i++) {
$encrypted_email .= "&#" . ord($designMail[$i]);
}
// echo $encrypted_email;
?>
It is clear that the problem I outlined still holds. So, what you need to do is to start off with an empty string, upon which each iteration of the loop will append to that string:
<?php
//Email Obfuscator
$designMail = "design@rupstar.com";
$len = strlen($designMail);
$encrypted_email = '';
for ($i=0;$i<$len;$i++) {
$encrypted_email .= "&#" . ord($designMail[$i]);
}
// echo $encrypted_email;
?>