ALIAS

has()

ShortPHP reference for str_contains().

Signature

str_contains(string $haystack, string $needle): bool

Example

has(...);

PHP equivalent

str_contains() is the canonical PHP function. ShortPHP provides has() as the convenience alias.

Extension: Core

Official PHP manual ↗

Reference navigation

Previous: sxload()

Next: ends()

Back to reference