adspace


Tell me how to find the position of the first occurrence of a substring in a string?

Answer Posted / Kumar Alok Ranjha

In PHP, you can use the `strpos()` function to find the position (index) of the first occurrence of a substring within another string. For example: `strpos($haystack, $needle);`

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to calculate the difference between two dates using php?

1147


Tell me what kind of things have you done on the social side?

1067


Explain me is it possible to destroy a cookie?

1032


What sized websites have you worked on in the past?

1088


Write a program using while loop?

1122


Which variable declarations within a class is invalid in php?

1050


What does $_files means?

1166


hello all, I need some sample placement papers in lion bridge.. can anyone help me?

2179


How to create a web form?

1113


What is difference between static and final in php?

1109


sort term descripttion form, report and uery

2254


Name and explain five of the PHP error constants?

1039


What is the current stable version of php?

1126


What is trait in php?

1068


if you run the app program all vendor open items are cleared but is it possible to reverse the again again open items please tell me the answer

1994