Answer the question
In order to leave comments, you need to log in
How to use function in preg_replace?
In general, there is this code: preg_replace("/тут неважно что/", "$1$2", str);
Regular return 2 brackets, how can I do something like this:
preg_replace("/тут неважно что/", my_func($1, $2), str);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question