int checkArray(int $flags, int $mode, array $array)

$flags - can be added together; the $flags value depends on $mode so see the values for $mode below for available $flags; if a $mode does not say anything about $flags, then the $flags value is not used and should be 0.

$mode - can not be added together

1 - returns TRUE if $array (an array of strings) does not contain duplicate string values (using case-insensitive compares), else returns FALSE and sets $checkarray1duplist to a list of duplicate strings and $checkarray1duplistnum to the number of duplicate strings

$flags

1 - use case-sensitive compares instead of case-insensitive compares

2 - returns TRUE if all values in $array (an array of strings) are recognized as link types/keywords (valid or invalid) or allowed absolute URLs for the "rel" attribute for the "link" element, else returns FALSE and sets $checkarray2badlist to a list of unrecognized keywords and $checkarray2badlistnum to the number of unrecognized keywords

3 - returns TRUE if all values in $array (an array of strings) are not recognized as dropped values for the "rel" attribute, else returns FALSE and sets $checkarray3droplist to a list of dropped values and $checkarray3droplistnum to the number of dropped values

4 - returns TRUE if all values in $array (an array of strings) are not recognized as rejected values for the "rel" attribute, else returns FALSE and sets $checkarray4rejlist to a list of rejected values and $checkarray4rejlistnum to the number of rejected values

5 - returns TRUE if all values in $array (an array of strings) are all recognized as valid link types/keywords for the "rel" attribute for the "link" element, else returns FALSE

6 - returns TRUE if all values in $array (an array of strings) are all recognized as valid link types/keywords for the "rel" attribute for the "a" and "area" elements, else returns FALSE

7 - returns TRUE if all values in $array (an array of strings) are recognized as link types/keywords (valid or invalid) or allowed absolute URLs for the "rel" attribute for the "a" and "area" elements, else returns FALSE and sets $checkarray7badlist to a list of unrecognized keywords and $checkarray7badlistnum to the number of unrecognized keywords

8 - returns TRUE if all values in $array (an array of strings) are recognized as valid tokens/keywords for the "sandbox" attribute for the "iframe" element, else returns FALSE and sets $checkarray8badlist to a list of unrecognized keywords and $checkarray8badlistnum to the number of unrecognized keywords

9 - returns TRUE if all values in $array (an array of strings) are recognized as valid email address (per HTML5), else returns FALSE and sets $checkarray9badlist to a list of invalid email addresses and $checkarray9badlistnum to the number of invalid email addresses

10 - returns TRUE if all values in $array (an array of strings) are recognized as valid tokens for the "accept" attribute of the "input" element (per HTML5), else returns FALSE and sets $checkarray10badlist to a list of invalid email addresses and $checkarray10badlistnum to the number of invalid tokens

11 - returns TRUE (and sets $checkarray11narrowfield to 1 if a narrow field was used) if $array (an array of strings) is recognized as a valid sequence of tokens for the "autocomplete" attribute of the "input" and "textarea" element (per HTML5), else returns FALSE

12 - returns TRUE if $array (an array of strings) is recognized as a valid sequence of tokens for the "sorted" attribute of the "th" element (per HTML 5.1), else returns FALSE

$array - the array to check

The default return value is FALSE (0) unless it is changed. NOTE: The value TRUE is the same as 1.

This function is often used after using dissect().

This function is supported only in CSE HTML Validator v14.00 and later.