WordPress at Your Fingertips
function is not described

WC_Product_CSV_Importer::starts_with() protected WC 1.0

Check if strings starts with determined word.

{} It's a method of the class: WC_Product_CSV_Importer{}

No Hooks.

Return

true|false.

Usage

// protected - for code of main (parent) or child class
$result = $this->starts_with( $haystack, $needle );
$haystack(string) (required)
Complete sentence.
$needle(string) (required)
Excerpt.

Code of WC_Product_CSV_Importer::starts_with() WC 5.7.0

protected function starts_with( $haystack, $needle ) {
	return substr( $haystack, 0, strlen( $needle ) ) === $needle;
}