str_contains
문자열이 포함되어 있는지 확인합니다. (PHP 8+)
str_contains(string $haystack, string $needle): bool
아래 값을 입력하면 예제에 즉시 반영됩니다.
if
echo
if (str_contains("Hello World", "World")) { echo "포함됨"; }