D
D
Dmitry Zhukov2018-04-23 20:14:13
PHP
Dmitry Zhukov, 2018-04-23 20:14:13

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

1 answer(s)
S
Stalker_RED, 2018-04-23
@dreamfdr

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 question

Ask a Question

731 491 924 answers to any question