WC_Product_CSV_Importer::starts_with()protectedWC 1.0

Check if strings starts with determined word.

Метод класса: WC_Product_CSV_Importer{}

Хуков нет.

Возвращает

true|false.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->starts_with( $haystack, $needle );
$haystack(строка) (обязательный)
Complete sentence.
$needle(строка) (обязательный)
Excerpt.

Код WC_Product_CSV_Importer::starts_with() WC 8.7.0

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