$ A & #039; fdsfd4352 Lin fengjiao arongsuo danfu of pepper & #039; $ B & #039; Su & #039; how can I find his 12th $ a = 'lin fengjiao arongsuo danfu shares fds of spicy fdsfd4352 pepper ';
$ B = 'su' how can I find that he has 12th
Reply content:
$ A = 'Spicy fdsfd4352 Pepper's Lin fengjiao arongsuo danfu shares fds ';
$ B = 'su' how can I find that he has 12th
The primary answer is 12. Based on the contributions of the above students, correct the answer:
$ A = 'fdsfd4352 the fds of Lin fengjiao arongsuo danfu of pepper '; $ B = 'sur'; $ char_pos = strpos ($ a, $ B ); // 15 // search for the Chinese location. The mb * function mb_internal_encoding ('utf-8') must be combined; $ pos = mb_strpos ($ a, $ B) + 1; // 12
$ A = 'fdsfd4352 Lin fengjiao arongsuo danfu fds of pepper '; $ B = 'sur'; $ pos = strpos ($ a, $ B );
Strpos ($ a, $ B );
Mb _ to obtain the natural Length