Answer the question
In order to leave comments, you need to log in
How to insert the desired character in a string when the first space appears?
You need to modify the dynamic string by inserting a tag after the first word (or when the first space appears). How to do it?
Answer the question
In order to leave comments, you need to log in
strpos to find where the space is located
substr_replace to replace it with something there.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question