PHP

PHP Menu

PHP

stripos() Function - Definition, Syntax, Parameters, Examples

Definition

The stripos() function finds the position of the first occurrence of a string inside another string.

Syntax

stripos(string, find, start)

Parameters

Parameter Description
string Required. Specifies the string to search.
find Required. Specifies the string to find.
start Optional. Specifies where to begin the search.

Example

<?php
echo stripos("Welcome to PHP! Here are the PHP string functions.","PHP");

Introduction

PHP Basics

PHP Advance

PHP OOP

PHP Functions and Methods