$lang = array( \'thank you\'=>\'You are welcome\', \'thanks\'=>\'You are welcome\', \'thank ya\'=>\'You are welcome\' );
You can use array_fill_keys() :
$keys = array('thank you','thanks','thank ya'); $lang = array_fill_keys($keys, 'You are welcome');
Example