Jim Grill wrote:

Incase anyone was wanting to hire John, I've cracked the code. Phear me, I
great H4x0r.

<?php
// system requirements: PIV 3.0GHz 1.5GB RAM - 3D graphics accelerator -
14.4 Fax Modem.
// make sure your turbo button is in the on position
$eml = '*&hn[foo]h&l!$s(_2_)littler$dpsar%[foo]c&!';

$rplc = array
  (
    '$' => 'e',
    '&' => 'o',
    '[foo]' => '.',
    '(_2_)' => '@',
    'ps' => 'sp',
    'little' => 'big',
    '%' => 'k',
    '!' => 'm',
    '*' => 'j'
  );
while (list($k,$v) = each($rplc))
{
  echo "Got key: $k - replacing with $v<br>";
  if  ($v == '@')
    echo 'Ah-ha! Phear me!<br>';
  $eml = str_replace($k, $v, $eml);
}
echo '<br /><b>l33t code Warning</b>:  phear me in <b>this here file</b> on
line <b>25</b><br />';
echo '<a href="mailto:'.$eml.'">'.$eml.'</a>';
?>

I'd like to suggest this as the official PHP mailing list email format for
Mondays, Tuesdays, Rainy days, and all through May... if I may...you hear
what I say?

lol.. you guys crack me up.

Wouldn't

str_replace(array_keys($rplc),$rplc,$eml);

be better, though?


--

---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to