check if string contains substring php 8

PHP
str_contains('STRING', 'SUB_STRING');$a = 'How are you?';

if (strpos($a, 'are') !== false) {
    echo 'true';
}

Source

Also in PHP: