i just want to replace the text
{_?add=addon_last_news.num=10}
with
php function include:
include (path_to_file/addon_last_news.php?num=10)
so, i want to do this in a single row with calling preg_replace function:
preg_replace ("'{_\?add=(.).(.)?}'ie", include ("http://localhost/dp/src/addon_last_news.php"), $text);
just help me out with the 2nd argument in preg_replace function,.. i'm just getting parse errors and illegal syntaxes...
-thanks 😉