+ 2
PHP Functions
What the strpos() Function do ?
2 ответов
+ 9
It tells us the first position of a string in another string.
For example,
strpos("Gauhar Rahman Niazi","har") will return 3 because "har" starts at index 3.
See more: https://www.w3schools.com/php/func_string_strpos.asp
+ 3
You should learn strpos, strrpos, strchr and strrchr together.
Check out the code to learn how to use these functions.
https://code.sololearn.com/wMnGlZ4ZThGI/?ref=app