public function str_replace_assoc( array $replace, string $subject )
This method is used to replace strings found in an associative array. This method was created from Wes Foster's strReplaceAssoc() function (source).
(array) (required) The associative array containing strings to search for (the array keys) and the strings to replace matches with (the values)
(string) (required) The string to process.
This method will return the passed string, but with any array key matches replaced by the associated values.