Automattic\WooCommerce\Vendor\Symfony\Polyfill\Php80
Php80::str_starts_with
Method of the class: Php80{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = Php80::str_starts_with( $haystack, $needle ): bool;
- $haystack(string) (required)
- .
- $needle(string) (required)
- .
Php80::str_starts_with() Php80::str starts with code WC 10.7.0
public static function str_starts_with(string $haystack, string $needle): bool
{
return 0 === strncmp($haystack, $needle, \strlen($needle));
}