Replace all occurrences of the keys in the given $search array with their respective values

string:replace_multiple(STRING $string, ARRAY $search_array, BOOL $case_sensitive=TRUE) : STRING

string:replace_multiple('hi dear John', ['hi' => "Bye", 'John' => "Tom"])
#=> "Bye dear Tom"

# The order in which the search and replace happens is the same as the order of the keys in the $search_array
string:replace_multiple('One, two, three', ['two' => "three", 'three' => "four"])
#=> "One, four, four"

Copyright ©2013-2022 SunSed®. All rights reserved.