- array_values: documentation ( source)
- str_replace: documentation ( source)
- array_keys: documentation ( source)
<?php
$table = array(
'hi' => 'hello',
'no' => 'yes',
'stuff' => array(
'house' => 'mouse',
'claus' => 'santa',
)
);
echo str_replace(array_keys($table), array_values($table), 'Hello friends! I have some for you, no?');