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.


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/import/class-wc-product-csv-importer.php

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


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.