PHP: str_contains - Manual

PHOTO EMBED

Wed Jul 20 2022 19:12:54 GMT+0000 (Coordinated Universal Time)

Saved by @kalehm

<?php
$string = 'The lazy fox jumped over the fence';

if (str_contains($string, 'lazy')) {
    echo "The string 'lazy' was found in the string\n";
}
content_copyCOPY

https://www.php.net/manual/en/function.str-contains.php