i have been at this segment of code for the last 5 days. since i have not made any progress i decided to come here…
i am trying to replace $name with the values in the $search array. though for some reason i am only getting 184 “a” and 5 variations of “a”. you can see what i mean here: http://tibtibs.com/godaddybegay/pass_gen_II/server_info.php
this is my first multidimensional array. so i am sure i am doing wrong. some insight would be greatly appreciated.
[php]
$search = array( array(“a”=>array(‘4’,’@’,’^’,‘aye’,‘ci’)),
array(“b”=>array(‘8’,’|3’,‘6’,‘13’,’|3’,‘ß’,’]3’)),
array(“c”=>array(’(’,’<’,‘¢’,’{’,‘©’,‘sea’,‘see’)),
array(“d”=>array(’|)’,’[)’,’])’,‘I>’,’|>’,‘0’,‘ð’,‘cl’)),
array(“e”=>array(‘3’,‘£’,’&’,‘€’,’[-’)),
array(“f”=>array(’|=’,’]=’,’}’,‘ph’,’(=’)),
array(“g”=>array(‘6’,‘9’,’&’,’(+’,‘C-’,‘gee’,‘jee’,‘cj’)),
array(“h”=>array(’|-|’,’]-[’,’[-]’,’)-(’,’(-)’,’ :-:’,’}{’,’}-{’,’#’,‘aych’)),
array(“i”=>array(’!’,‘1’,’|’,‘eye’,‘3y3’,‘ai’,’¡’)),
array(“j”=>array(’|’,’/’,’]’,’¿’,’)’)),
array(“k”=>array(‘X’,’|<’,’|X’,’|{’)),
array(“l”=>array(‘1’,‘7’,’|’,‘£’,’|’,’|’,‘lJ’,‘¬’)),
array(“m”=>array(’|/|’,‘em’,’|v|’,’[V]’,’^^’,‘nn’,’//\//\’,’(V)’,’(/)’,’/|/|’,’.\’,’|^^|’)),
array(“n”=>array(’||’,’//’,’//\//’,’[]’,’<>’,’{}’,’//’,’[][]’,’][’,’~’)),
array(“o”=>array(‘0’,’()’,‘oh’,’[]’,‘¤’,‘O’)),
array(“p”=>array(’|*’,’|o’,’|º’,’|>’,’|"’,‘9’,’[]D’,’|7’,‘q’,‘þ’,’¶’,’|D’)),
array(“q”=>array(‘0_’,‘0,’,’(,)’,’<|’,‘cue’,‘9’,’¶’)),
array(“r”=>array(’|2’,‘2’,’/2’,‘I2’,’|^’,’|~’,‘lz’,‘®’,’|2’,’[z’,’|','l2','.-')), array("s"=>array('5','$','z','§','es')), array("t"=>array('7','+','-|-','1','†')), array("u"=>array('|_|','(_)','Y3W','M','µ','[_]','\_/','/_/')), array("v"=>array('\/','v','\\//')), array("w"=>array('\/\/','vv','\^/','(n)','\X/','\|/','\_|_/','\\//\\//','\_:_/',']I[','UU')), array("x"=>array('%','><','}{','ecks','×','*',')(','ex')), array("y"=>array('
/’,’`(’,’-/’,‘f’,‘¥’)),
array(“z”=>array(‘2’,’=’,’~/’,’ %’,'7’)),
);
$name = “Sabrina”;
$name = str_split(strtolower($name));
foreach ($search as $key => $value){
foreach ($value as $subkey => $subvalue){
foreach ($subvalue as $subsubvalue){
foreach ($name as $letter){
$replaced = str_replace($subkey,$subsubvalue,$letter);
}
echo “$replaced”;
}
}
}
[/php]