Astra_Customizer::starts_with( string $string, string $start_string )

Check if string is start with a string provided.


Description


Parameters

$string

(string) (Required) main string.

$start_string

(string) (Required) string to search.


Return

(bool.)


Source

File: inc/customizer/class-astra-customizer.php

		public function starts_with( $string, $start_string ) {
			$len = strlen( $start_string );
			return ( substr( $string, 0, $len ) === $start_string );
		}

Changelog

Changelog
Version Description
2.0.0 Introduced.

User Contributed Notes

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