$lang = array(
\'thank you\'=>\'You are welcome\',
\'thanks\'=>\'You are welcome\',
\'thank ya\'=>\'You are welcome\'
);
I do it in three steps:
1 - Define unique values
2 - Fill repetitive value
3 - Union 1. and 2.
$lang = array(
'hello'=>'hello',
'goodbye'=>'goodbye'
);
$keys = array('thank you','thanks','thank ya');
$result = array_fill_keys($keys, 'You are welcome');
$lang += $result;
Have a look at array_fill_keys and Array Operators +=