help me with this one
$box_search = array (
"'{%lang.(.*?)}'i",
);
$box_replace = array (
$lang ['\\\\1'],
);
$boxput = preg_replace ($box_search, $box_replace, $boxput);
so, if i have the text %lang.myname in the input string i run the preg_replace and it SHOULD replace it with array value for $lang ['myname'] but it doesnt!
once again:
1. $boxput = "this is the example. and ". %lang.myname ." Gregor";
2. preg_replace finds %lang.(.*?) in string.
3. preg_replace should replace that text with $lang ['\\\\1']. IT DOESN'T!!!
thanks all for helping 😉