PHP stristr() function


In this article, We will explain to you PHP stristr() function with example.

PHP stristr() function

The stristr() function is a string function and case-insensitive. which is used to searches for the first case-insensitive occurrence of a string inside another string. so you can see our PHP String Function example.

Syntax

stristr(string,search,before_search);

Example

<?PHP
  echo stristr("This is my website","Website");
?>

Output

website