stristr() function is used to find the first occurrence of a substring within a string.
Performing a case-insensitive search.
Example:
<?php
$var_string = "Hello, world!";
$result = stristr($var_string, "WORLD");
echo $result;
?>
Output: world!
stristr() function is used to find the first occurrence of a substring within a string.
Performing a case-insensitive search.
Example:
<?php
$var_string = "Hello, world!";
$result = stristr($var_string, "WORLD");
echo $result;
?>
Output: world!