Automattic\WooCommerce\Vendor\Symfony\Polyfill\Php80
Php80::str_contains
Method of the class: Php80{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = Php80::str_contains( $haystack, $needle ): bool;
- $haystack(string) (required)
- .
- $needle(string) (required)
- .
Php80::str_contains() Php80::str contains code WC 10.8.1
public static function str_contains(string $haystack, string $needle): bool
{
return '' === $needle || false !== strpos($haystack, $needle);
}