array_flip() example
<? $trans = array(1, "hello", 1, "world", "hello"); $trans = array_flip ($trans); $original = strtr ($str, $trans); ?>