+ 2

PHP Functions

What the strpos() Function do ?

29th Jan 2019, 4:54 AM
Gauhar Rahman Niazi
Gauhar Rahman Niazi  - avatar
2 Respuestas
+ 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
29th Jan 2019, 5:26 AM
Shamima Yasmin
Shamima Yasmin - avatar
+ 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
29th Jan 2019, 6:00 AM
Calviղ
Calviղ - avatar