Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 430 Bytes

function.HH.Lib.Str.replace_every_ci.md

File metadata and controls

13 lines (11 loc) · 430 Bytes
$result = Str\replace_every_ci("example_string", dict["example"=>"test", "string"=>"value"]);
echo($result);
//result: test_value

$result = Str\replace_every_ci("example_string", dict["EXAMPLE"=>"test", "STRING"=>"value"]);
echo($result);
//result: test_value

$result = Str\replace_every_ci("example_string", dict["uncontained"=>"test", "uncontained_2"=>"value"]);
echo($result);
//result: example_string