Mr. Goodie2Shoes
Active Member
Here's the coding... I am using "preg_replace"
and here's a result:
as you can see, there are no numerics in the scrambled string... any help?
PHP:
<?php
$key = $_SERVER['QUERY_STRING'];
$characters = array('/a/','/b/','/c/','/d/','/e/','/f/','/g/','/h/','/i/','/j/','/k/','/l/','/m/','/n/','/o/','/p/','/q/','/r/','/s/','/t/','/u/','/v/','/w/','/x/','/y/','/z/','/0/','/1/','/2/','/3/','/4/','/5/','/6/','/7/','/8/','/9/');
$scrambles = array('0','1','2','3','4','5','6','7','8','9','a','s','d','f','g','h','j','k','l','q','w','e','r','t','y','u','i','o','p','z','x','c','v','b','n','m');
$result = preg_replace($characters, $scrambles, $key);
echo "Original:<br/>";
echo $key."<br/>";
echo "Scrambled:<br/>";
echo $result;
?>
and here's a result:
Code:
Original:
abcdefghijklmnopqrstuvwxyz0123456789
Scrambled:
iopzxcvbnmaldfghjklqrertyuiopzxcvbnm
as you can see, there are no numerics in the scrambled string... any help?