Consider this contrived example. The following array works fine if I want to convert English to Spanish.
$translate = array( 'one' => 'uno',
'two' => 'dos',
'three' => 'tres'
);
echo $translate['one'];
But how do I convert from Spanish to English? Can this be done with an associative array or is there a better way to do this?
However, it might be faster if you want to translate multiple words the other way around to remap the array: