WC_Product_CSV_Importer::starts_with( string $haystack, string $needle )
Check if strings starts with determined word.
Description Description
Parameters Parameters
- $haystack
-
(Required) Complete sentence.
- $needle
-
(Required) Excerpt.
Return Return
(bool)
Source Source
File: includes/import/class-wc-product-csv-importer.php
protected function starts_with( $haystack, $needle ) { return substr( $haystack, 0, strlen( $needle ) ) === $needle; }