- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
stripos() function in PHP()
The stripos() function is used to find the position of first occurrence of a string inside the another string.
Note − The function is case-insensitive.
Syntax
stripos(str, search, begin)
Parameters
str − The string to search in
search − The string to search
begin − Where to begin the search
Return
The stripos() function returns the position of the first occurrence of a string inside another string.
Example
The following is an example −
<?php echo stripos("Cricket is a sports!, Cricket is a religion","Cricket"); ?>
Output
0
Advertisements