B
B
Buhgun2015-11-13 21:18:58
PHP
Buhgun, 2015-11-13 21:18:58

How to find out the number of a certain character and a certain word and operate on these numbers?

1) there is www.php.su/substr for the symbol, but how to get the number?
2) How to find out what sequence number the N word ends with?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
wol_fi, 2015-11-13
@Buhgun

www.php.su/strpos + www.php.su/strlen I
only recommend using mb_string: mb_substr, mb_strpos and mb_strlen respectively. Otherwise, on a multibyte encoding, it will not work as you expect.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question