1
2<?php
3$string = 'The lazy fox jumped over the fence';
4
5if (str_contains($string, 'lazy')) {
6 echo "The string 'lazy' was found in the string\n";
7}
8
9if (str_contains($string, 'Lazy')) {
10 echo 'The string "Lazy" was found in the string';
11} else {
12 echo '"Lazy" was not found because the case does not match';
13}
14
15?>
16
17