Home >> PHP >> stristr() function in PHP

stristr() function in PHP

The stristr() function (case-insensitive) used for find first occurrence of a string inside another string.

Syntax

stristr(string,search,before_search);

Example

echo stristr("Hello Dear","Dear",true);

Output

Hello

Post Your Comment

Next Questions
strlen() function
strnatcasecmp() function
strnatcmp() function
strncasecmp() function
strncmp() function
strpbrk() function
strpos() function
strrchr() function
strrev() function
strripos() function
strrpos() function
strspn() function
strstr() function
strtok() function
strtolower() function
strtoupper() function
strtr() function
substr() function
substr_compare() function
substr_count() function
substr_replace() function
trim() function
ucfirst() function
ucwords() function
wordwrap() function

Copyright ©2022 coderraj.com. All Rights Reserved.