Answer the question
In order to leave comments, you need to log in
How to get a substring up to a comma?
There is a line "egor krush, egoro, egorino, egran"
. It must be returned
when requested .
Now I use:"ego"
["egoro krush","egoro","egorino"]
preg_match_all('~ego[\w]*~i',"egor krush, egoro, egorino, egran", $match)
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