Answer the question
In order to leave comments, you need to log in
How to parse a string with commas?
Help with a task. There is a line $str="Катя, Валя, Таня, Настя"
; I need to make her
$new_str="<a href=\"Катя\">Катя</a>, <a href=\"Валя\">Валя</a>, <a href=\"Таня\">Таня</a>, <a href=\"Настя\">Настя</a>";
. Help me write a preg_replace rule
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