I have 2 arrays one with placeholder that are keys in another array
arr1 = array(
"id" => "{{verticalId}}",
"itemPath" => "{{verticalId}}/{{pathId}}/");
arr2 = array(
"verticalId" => "value1",
"pathId" => "value2");
So how can I run on arr1
and replace placeholders with value from arr2
?