beginsWith[No]Case() (tick_24Global)

int beginsWithCase(string $str, string $str1[, string $str2...])

int beginsWithNoCase(string $str, string $str1[, string $str2...])

These functions compare a string to a list of strings to see if $str begins with any of the strings in the list. If $str does not begin with any strings, then these functions will return 0, else these functions return 1 or greater. For example, if $str begins with $str1, then these functions will return 1, if $str begins with $str2, then these functions will return 2, etc.

beginsWithCase() performs a case-sensitive compare, while beginsWithNoCase() performs a case-insensitive compare.

These functions are supported only in CSE HTML Validator v8.9920 and later.