Tell me how to find the position of the first occurrence of a substring in a string?
Answer / 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 |
tel me any 2 regular expressions with example
What is the correct and the most two common way to start and finish a php block of code?
What are super global variables in php?
What is binary safe string?
Why is node js better than php?
What the difference between the 'bitwise and' operator and the 'logical and' operator?
Which functions are used to count the total number of array elements in php?
How can we know that a session is started or not?
Do I need to install php after xampp?
How php statement is different from php script?
Which function can be used to delete a file?
How can you access a COM object from a PHP page?