stripos Function Knowledge Point Instance Sharing
- 2021-11-24 00:58:03
- OfStack
php stripos () Function Syntax
Function: Find the first place in the string where a character appears, insensitive to case
Syntax:
stripos(string,find,start)
Parameters:
string required. Specifies the string to search for.
find Required. Specifies the characters to find.
start is optional. Specify where to start the search.
Description: Find the first occurrence of a string in another 1 string (case-insensitive). The stripos () function is case insensitive. This function is binary safe.
The php stripos () function uses example 1:
<?php
echo stripos("You love php, I love php too!","PHP")
?>
Output:
9
The php stripos () function uses example 2:
<?php
echo stripos("PHP is a good development language!","php");
?>
Output:
0
This article is about PHP stripos function introduction, thank you for the support of this site.