method_str_replace_assoc()
method_str_replace_assoc( array $replace, $subject )
Performs associative string replacement.
Description
Convenience wrapper around str_replace() that accepts an associative array where keys are search strings and values are replacements.
Parameters
$replace (array) :
Associative array of search => replace pairs.
$subject (string) :
The string to perform replacements on.
Return
(string) The string with replacements applied.
Source
File: lib/helper-functions.php
Changelog
| Version | Description |
|---|---|
| 2.0.0 | Carried over from Method 1.x (introduced in 1.0.12, bb7171e). |