strpos
str_contains
str_starts_with
文字列が含まれているか確認します。(PHP 8+)
str_contains(string $haystack, string $needle): bool
下記の値を入力するとサンプルに即時反映されます。
if
echo
if (str_contains("Hello World", "World")) { echo "포함됨"; }